From f5c53ca295288779b25abc8a5f57b1336a8f7e87 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 17 Jan 2021 23:57:07 +0000 Subject: [PATCH] vim: add more bindings for git commit and git push --- vim/vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index b7188f1..7e34c7c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -571,7 +571,13 @@ autocmd BufReadPost fugitive://* set bufhidden=delete nnoremap gs :Git nnoremap gd :Gdiffsplit -nnoremap gc :tab G commit -v +nnoremap gc :echohl WarningMsg \| echo "use \gcc instead" \| echohl None +nnoremap gcc :tab G commit -v +nnoremap gca :tab G commit -v --amend +nnoremap gcf :tab G commit -v --fixup= +nnoremap gp :echohl WarningMsg \| echo "use \gpp instead" \| echohl None +nnoremap gpp :G push +nnoremap gpf :G push --force-with-lease nnoremap ga :Gwrite nnoremap gb :G blame -- 2.48.1