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

17 lines
668 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>
nnoremap <silent> <Leader>gd :Gdiffsplit<cr>
nnoremap <silent> <Leader>gs :Git<cr>
nnoremap <silent> <Leader>gc :Git commit -q<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