" Smaller updatetime for CursorHold & CursorHoldI set updatetime=300 " don't give |ins-completion-menu| messages. set shortmess+=c " always show signcolumns set signcolumn=yes " Some server have issues with backup files, see coc#649 set nobackup set nowritebackup " Better display for messages set cmdheight=2 " Use for trigger completion. inoremap coc#refresh() " Use for confirm completion, `u` means break undo chain at current " position. Coc only does snippet and additional edit on confirm. inoremap pumvisible() ? "\" : "\u\" " Use `[g` and `]g` for navigate diagnostics nmap [g (coc-diagnostic-prev) nmap ]g (coc-diagnostic-next) " Remap keys for gotos nmap gd (coc-definition) nmap gt (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) " Remap for do code action of current line nmap la (coc-codeaction) " Remap for rename current word nmap ln (coc-rename) " Remap for do action format nnoremap F :call CocAction('format')