1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 15:21:30 +01:00

vim: improve fugitive/gitgutter shortcuts

This commit is contained in:
bretello 2021-12-09 10:43:05 +01:00
parent f1454a95f7
commit 40540908e0

View File

@ -59,8 +59,8 @@ nnoremap <leader>B :Bclose<CR>
nnoremap <leader>k :Rg<CR>
"" Fugitive
nnoremap <leader>/ :0Git<CR>
nnoremap <leader>g :Git<Space>
nnoremap <leader>/ :Git<CR>
nnoremap <leader>\ :0Git<CR>
nnoremap <leader>Gd :Gvdiffsplit<CR>
nnoremap <leader>Gb :Git blame<CR>
nnoremap <leader>Gp :Git push<CR>
@ -71,8 +71,9 @@ nnoremap <leader>Gpf :Git push --force-with-lease<CR>
"" Gitutter
nnoremap <leader>u :GitGutterBufferToggle<CR>
nnoremap <leader>L :GitGutterLineHighlightsToggle<CR>
nnoremap <leader>hn :GitGutterNextHunk<CR>
nnoremap <leader>hp :GitGutterPrevHunk<CR>
nnoremap <leader>gp :GitGutterPrevHunk<CR>
nnoremap <leader>gn :GitGutterNextHunk<CR>
"" Coverage Highlight
nnoremap <leader>H :HighlightCoverageForAll<CR>