heavim/plugins/vim-fugitive.load.vim

23 lines
802 B
VimL
Raw Permalink Normal View History

2023-06-18 15:24:02 +02:00
call dein#add('tpope/vim-fugitive', #{
\ lazy: 1,
\ on_source: 'vim-airline',
2023-06-18 15:24:02 +02:00
\ })
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>
nnoremap <Leader>gP :Git! push<cr>
2015-03-09 11:52:35 +01:00
" 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>
nnoremap <Leader>gr :GRename<space>
nnoremap <Leader>gR :GRemove