set autoindent set background=light set shiftwidth=2 set tabstop=2 set noexpandtab set relativenumber set smartcase " use for trigger completion and navigate to the next complete item function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" " use to trigger completion inoremap coc#refresh()