function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() " Navigating through results list " Tab to select next result inoremap pumvisible() ? "\" : "\" " Shift+Tab to select previous inoremap pumvisible() ? "\" : "\" " Use enter to confirm completion inoremap pumvisible() ? "\" : "\u\" " Select first option if no option is selected on enter inoremap pumvisible() ? coc#_select_confirm() : "\u\" " Project refactoring keybinding nnoremap pwr :CocSearch =expand("") " Go to definition nmap gd (coc-definition) nmap gb nmap gi (coc-implementation) nmap gr (coc-references) " Jump between diagnostic positions nmap dk (coc-diagnostic-prev) nmap dK (coc-diagnostic-prev-error) nmap dj (coc-diagnostic-next) nmap dJ (coc-diagnostic-next-error) " Show full diagnostics list nmap dd :CocDiagnostics