Search vim help for subject under cursor
The simplest solution is
nnoremap K :help <C-r><C-w><CR>
Just press K
. If you have set a global 'keywordprg'
, you need to unset it (or set it to the special :help
value) in ~/.vim/after/ftplugin/vim.vim
:
:setlocal keywordprg=:help