diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 8d32c81..2a45a11 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -7,4 +7,5 @@ setlocal shiftwidth=2 setlocal tabstop=2 " Documentation inside vim -autocmd FileType cpp set keywordprg=cppman +command! -nargs=+ Cppman silent! call system("tmux split-window cppman " . expand()) +autocmd FileType cpp nnoremap K :Cppman