setlocal nomodeline " first line might contain 'vim:' nnoremap p :Pick 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'"