dotfiles/.config/nvim/init/plugins/git-fugitive.vim

17 lines
492 B
VimL
Raw Normal View History

2021-04-21 14:52:27 +02:00
" Key bindings for quicker Git work
" Status
nnoremap <silent> <leader>gg :Git<CR>
" Commit
nnoremap <silent> <leader>gc :Git commit<CR>
" Push
nnoremap <silent> <leader>gp :Git push<CR>
2021-04-22 10:45:36 +02:00
" Open diff tool
nnoremap <silent> <leader>gd :Gdiffsplit!<CR>
" Open merge tool
nnoremap <silent> <leader>gm :Git mergetool<CR>
2021-04-21 14:52:27 +02:00
" Easily resolve merges
2021-04-22 10:45:36 +02:00
" nnoremap <silent> <leader>gh :diffget //2<CR>
" nnoremap <silent> <leader>gl :diffget //3<CR>
" Git blame
nnoremap <silent> <leader>gb :Git blame<CR>