" Default config 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\" " Own config " Project refactoring keybinding nmap pwr :CocSearch =expand("") " Go to definition nmap gd (coc-definition) " Return from jump (e.g. go to definition) nmap gb " Go to implementation nmap gi (coc-implementation) " Show references of word nmap gr (coc-references) " Refactor nmap rf (coc-refactor) " 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) " Code formatting " vnoremap " Show full diagnostics list nmap dd :CocDiagnostics