"open config with \r noremap r :edit $MYVIMRC noremap w :update inoremap w :updatea cmap w!! w !sudo tee % >/dev/null cnoremap %% getcmdtype() == ':' ? expand('%:p:h') . '\' : '%%' cnoremap %b getcmdtype() == ':' ? expand('%:p:r') : '%b' "Remove search highlight when is pressed nnoremap :nohlsearch "toggle whitespace noremap l :set list! " noremap R :! echo reload \| nc -w 1 localhost 32000 noremap R :! tmux send-keys -t top-right "up" C-m "press space in normal mode to center screen noremap zz noremap ] :bn noremap [ :bp noremap d :bd " coc.nvim function! s:check_back_space() abort let l:col = col('.') - 1 return !l:col || getline('.')[l:col - 1] =~? '\s' endfunction function! s:show_documentation() if &filetype ==# 'vim' execute 'h '.expand('') else call CocAction('doHover') endif endfunction inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() nmap T (coc-type-definition) nmap D (coc-definition) nmap U (coc-references) nmap I (coc-implemenetation) nnoremap p :call show_documentation() nmap e[ (coc-diagnostic-prev) nmap e] (coc-diagnostic-next) nnoremap :CocList commands