home: vim: add 'after'
This commit is contained in:
parent
d74aead9ae
commit
f1e4a4d914
31 changed files with 364 additions and 0 deletions
10
home/vim/after/plugin/mappings/fugitive.vim
Normal file
10
home/vim/after/plugin/mappings/fugitive.vim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
" Visual bindings for merging diffs as in normal mode
|
||||
xnoremap dp :diffput<cr>
|
||||
xnoremap do :diffget<cr>
|
||||
|
||||
" Open status window
|
||||
nnoremap <Leader>gs :Gstatus<CR>
|
||||
" Open diff view of current buffer: the up/left window is the current index
|
||||
nnoremap <Leader>gd :Gdiffsplit!<CR>
|
||||
" Open current file log in new tab, populate its location list with history
|
||||
nnoremap <Leader>gl :sp<CR><C-w>T:Gllog --follow -- %:p<CR>
|
||||
Loading…
Add table
Add a link
Reference in a new issue