diff --git a/vimrc b/vimrc index dd9f79c..a7aeba4 100644 --- a/vimrc +++ b/vimrc @@ -19,13 +19,13 @@ if !has('nvim') inoremap coc#refresh() nnoremap K :call show_documentation() - nmap \d (coc-definition) - nmap \y (coc-type-definition) - nmap \i (coc-implementation) - nmap \r (coc-references) - nmap \n (coc-rename) - vmap \f (coc-format-selected) - nmap \f (coc-format-selected) + nnoremap \d (coc-definition) + nnoremap \y (coc-type-definition) + nnoremap \i (coc-implementation) + nnoremap \r (coc-references) + nnoremap \n (coc-rename) + vnoremap \f (coc-format-selected) + nnoremap \f (coc-format-selected) command! -nargs=0 Format :call CocAction('format') command! -nargs=? Fold :call CocAction('fold', ) @@ -1049,6 +1049,11 @@ nnoremap dd :DD nnoremap bx :w\|bd " sync highlighting from start nnoremap ss :syntax sync fromstart +" Chain multiple path completions with / key. Selects the first suggestion if +" no current selection. Use ctrl-y to finish completion as normal. +inoremap / pumvisible() + \ ? len(v:completed_item) ? '' : '' + \ : '/' "}}} " terminal{{{