dotfiles/nvim/plugin/git.vim
2021-04-23 01:26:10 +03:00

15 lines
487 B
VimL

" mappings {{{
let g:gitgutter_map_keys = 0
nnoremap <leader>gg :G
nnoremap <leader>g :Git<space>
nnoremap <leader>gs :vertical Git<CR>
nnoremap <leader>gd :Gdiffsplit
nnoremap <leader>gb :Git blame<CR>
nnoremap <leader>gw :GBrowse<CR>
nnoremap <leader>gW :.GBrowse<CR>
nnoremap <leader>gc :Git commit %
nnoremap <leader>gC :Git commit --amend
nnoremap <leader>gl :Gclog<CR>
nnoremap <leader>gp :Git push
nnoremap <leader>gP :Git push --force-with-lease
" }}}