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("")