From: Samir Benmendil Date: Sun, 17 Jan 2021 23:57:07 +0000 (+0000) Subject: vim: add more bindings for git commit and git push X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/f5c53ca295288779b25abc8a5f57b1336a8f7e87?ds=inline vim: add more bindings for git commit and git push --- 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