set hidden set nobackup set nowritebackup set cmdheight=2 set shortmess+=c set signcolumn=yes inoremap coc#refresh() function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) execute 'h '.expand('') else call CocAction('doHover') endif endfunction " Binds nnoremap K :call show_documentation()