This repository has been archived on 2021-12-21. You can view files and clone it, but cannot push or open issues/pull-requests.
neovim-config/init/plugins/git-fugitive.vim

13 lines
357 B
VimL
Raw Normal View History

2020-08-08 20:27:01 +02:00
" Key bindings for quicker Git work
" Status
nnoremap <silent> <leader>gg :Git<CR>
" Commit
nnoremap <silent> <leader>gc :Gcommit<CR>
" Push
nnoremap <silent> <leader>gp :Gpush<CR>
" Show diffs
2020-10-23 09:45:55 +02:00
nnoremap <silent> <leader>gd :Gvdiffsplit!<CR>
2020-08-20 14:29:03 +02:00
" Easily resolve merges
nnoremap <silent> <leader>gh :diffget //2<CR>
nnoremap <silent> <leader>gl :diffget //3<CR>