noremap f :Autoformat imap //< (codelines-close) map cl :call jobstart(['codelines', '.']) nnoremap K :call show_documentation() function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) execute 'h '.expand('') else call CocAction('doHover') endif endfunction au BufWritePost *.scala Neomake!