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

vim: improve git shortcuts

This commit is contained in:
bretello 2021-10-01 10:59:30 +02:00
parent cbcc841ba8
commit 9d901364fc
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -57,13 +57,13 @@ nnoremap <leader>k :Rg<CR>
"" Fugitive "" Fugitive
nnoremap <leader>/ :0Git<CR> nnoremap <leader>/ :0Git<CR>
nnoremap <leader>G :Git<CR> nnoremap <leader>g :Git<Space>
nnoremap <leader>gd :Git vdiffsplit<CR> nnoremap <leader>Gd :Gvdiffsplit<CR>
nnoremap <leader>gb :Git blame<CR> nnoremap <leader>Gb :Git blame<CR>
nnoremap <leader>gp :Git push<CR> nnoremap <leader>Gp :Git push<CR>
nnoremap <leader>gl :vert Git log<CR> nnoremap <leader>Gl :vert Git log<CR>
nnoremap <leader>M :Git commit<CR> nnoremap <leader>M :Git commit<CR>
nnoremap <leader>gpf :Git push --force-with-lease<CR> nnoremap <leader>Gpf :Git push --force-with-lease<CR>
"" Gitutter "" Gitutter
nnoremap <leader>u :GitGutterBufferToggle<CR> nnoremap <leader>u :GitGutterBufferToggle<CR>