nnoremap :NERDTreeToggle " Completion {{{ function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction nmap (coc-codeaction-line) xmap (coc-codeaction-selected) inoremap coc#pum#visible() ? coc#pum#confirm() : "\" inoremap \ coc#pum#visible() ? coc#pum#next(1): \ check_back_space() ? "\" : \ coc#refresh() inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" " }}} " Copy to clipboard register and paste from clipboard register {{{ " Taken from https://unix.stackexchange.com/a/23437 nnoremap "+y vnoremap "+y nnoremap "+gP vnoremap "+gP " }}}