"open config with \r noremap r :edit $MYVIMRC noremap w :update inoremap w :updatea cmap w!! w !sudo tee % >/dev/null " cmap eh e %:h/ " cmap wh w %:h/ " cmap %% %:h 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 " if exists('g:loaded_ale') " nmap e[ (ale_previous_wrap) " nmap e] (ale_next_wrap) " nmap p (ale_hover) " nmap D (ale_go_to_definition) " nmap U (ale_find_references) " endif " if exists('g:loaded_ctrlp_funky') " let g:ctrlp_funky_syntax_highlight = 1 " nnoremap f :CtrlPFunky " endif " if exists('g:LanguageClient_loaded') " nnoremap :call LanguageClient_contextMenu() " nnoremap :call LanguageClient_textDocument_codeAction() " endif " 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