X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d04f502c3f75923204454db419d30ac00841a3cc..e8ae4a469b8b5db19a27a2bf71bb04142a68a6f0:/vim/ftplugin/gitrebase.vim diff --git a/vim/ftplugin/gitrebase.vim b/vim/ftplugin/gitrebase.vim index 310b0d1..897aaf6 100644 --- a/vim/ftplugin/gitrebase.vim +++ b/vim/ftplugin/gitrebase.vim @@ -5,3 +5,12 @@ nnoremap s :Squash nnoremap e :Edit nnoremap r :Reword nnoremap f :Fixup +nnoremap d :Drop + +" used to be part of vim, now removed see +" https://github.com/tpope/vim-git/commit/3a96b1bca +" https://github.com/tpope/vim-git/commit/6ee5e1f20 +let &l:keywordprg = 'git show' +nnoremap K col('.') < 7 && expand('cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K' + +let b:undo_ftplugin = "setl keywordprg< |exe 'nunmap K'"