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