2023-06-18 15:24:02 +02:00
|
|
|
call dein#add('tpope/vim-fugitive', #{
|
|
|
|
\ lazy: 1,
|
|
|
|
\ on_cmd: [ 'Git', 'Gvdiffsplit', 'GMove', 'GRename', 'GRemove' ],
|
|
|
|
\ })
|
|
|
|
|
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>
|
2020-12-04 23:44:18 +01:00
|
|
|
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>
|
2023-06-18 15:26:04 +02:00
|
|
|
nnoremap <Leader>gP :Git! push<cr>
|
2015-03-09 11:52:35 +01:00
|
|
|
|
2020-12-07 16:36:17 +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>
|
2020-12-04 23:44:18 +01:00
|
|
|
nnoremap <Leader>gM :GMove<space>
|
2020-12-04 23:04:57 +01:00
|
|
|
nnoremap <Leader>gp :Git pull --recurse-submodules<space>
|
2020-12-07 16:36:17 +01:00
|
|
|
nnoremap <Leader>gr :GRename<space>
|
2020-12-04 23:44:18 +01:00
|
|
|
nnoremap <Leader>gR :GRemove
|