From 3868e90ee70c2e6e0af401f90d38c42a25d42567 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sun, 10 Nov 2019 12:10:57 +0100 Subject: [PATCH] Add cppman --- init.vim | 2 +- vim/ftplugin/cpp.vim | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 56aee86..2454f2c 100644 --- a/init.vim +++ b/init.vim @@ -298,7 +298,7 @@ nmap gi (coc-implementation) nmap gr (coc-references) " Use K to show documentation in preview window -nnoremap K :call show_documentation() +nnoremap H :call show_documentation() function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 06895bf..8d32c81 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -5,3 +5,6 @@ let g:ale_cpp_clangtidy_checks = ['*,-fuchsia*'] setlocal shiftwidth=2 setlocal tabstop=2 + +" Documentation inside vim +autocmd FileType cpp set keywordprg=cppman