From 77e439477caf3a24b5c881f9ef85546749aca7a4 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sun, 10 Nov 2019 12:23:26 +0100 Subject: [PATCH] Use cppman in new tmux pane --- vim/ftplugin/cpp.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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