heavim/bundles-init/vim-fugitive.cfg.vim
Emmanuel BENOîT b0647949f8 Style and shortcut tweaks. Added vim-which-key.
* Shortcut changes to make the Leader-based shortcuts easier to use
 * Install vim-which-key
 * Style fixes and changes
 * Reorganised some of the settings
2020-12-07 16:36:17 +01:00

16 lines
668 B
VimL

" Fugitive commands that don't require interaction with GitGutter or NERDTree
nnoremap <silent> <Leader>ga :Git add %:p<cr>
nnoremap <silent> <Leader>gd :Gdiffsplit<cr>
nnoremap <silent> <Leader>gs :Git<cr>
nnoremap <silent> <Leader>gc :Git commit -q<cr>
nnoremap <Leader>gb :Git branch<space>
" Note: dangerous commands don't have a <cr>. Also commands that need
" arguments, obviously.
nnoremap <Leader>gB :Git checkout -b<space>
nnoremap <Leader>gC :Git checkout<space>
nnoremap <Leader>gM :GMove<space>
nnoremap <Leader>gp :Git pull --recurse-submodules<space>
nnoremap <Leader>gP :Git push<space>
nnoremap <Leader>gr :GRename<space>
nnoremap <Leader>gR :GRemove