heavim/bundles-init/vim-fugitive.cfg.vim

18 lines
717 B
VimL
Raw Normal View History

2015-03-09 11:52:35 +01:00
" Fugitive commands that don't require interaction with GitGutter or NERDTree
2020-12-04 23:04:57 +01:00
nnoremap <silent> <Leader>ga :Git add %:p<cr>
2020-12-15 08:49:15 +01:00
nnoremap <silent> <Leader>gd :Gvdiffsplit<cr>
nnoremap <silent> <Leader>gs :Git<cr>
nnoremap <silent> <Leader>gc :Git commit -q<cr>
2020-12-07 16:54:56 +01:00
nnoremap <silent> <Leader>gz :Git reset %:p<cr>
2015-03-09 11:52:35 +01:00
nnoremap <Leader>gb :Git branch<space>
" Note: dangerous commands don't have a <cr>. Also commands that need
" arguments, obviously.
2015-03-09 11:52:35 +01:00
nnoremap <Leader>gB :Git checkout -b<space>
nnoremap <Leader>gC :Git checkout<space>
nnoremap <Leader>gM :GMove<space>
2020-12-04 23:04:57 +01:00
nnoremap <Leader>gp :Git pull --recurse-submodules<space>
2015-03-09 11:52:35 +01:00
nnoremap <Leader>gP :Git push<space>
nnoremap <Leader>gr :GRename<space>
nnoremap <Leader>gR :GRemove