update
This commit is contained in:
parent
98ea3f03a7
commit
b8a453bf48
19
vimrc
19
vimrc
|
@ -19,13 +19,13 @@ if !has('nvim')
|
|||
|
||||
inoremap <silent><expr> <c-n> coc#refresh()
|
||||
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
||||
nmap <silent> \d <Plug>(coc-definition)
|
||||
nmap <silent> \y <Plug>(coc-type-definition)
|
||||
nmap <silent> \i <Plug>(coc-implementation)
|
||||
nmap <silent> \r <Plug>(coc-references)
|
||||
nmap \n <Plug>(coc-rename)
|
||||
vmap \f <Plug>(coc-format-selected)
|
||||
nmap \f <Plug>(coc-format-selected)
|
||||
nnoremap <silent> \d <Plug>(coc-definition)
|
||||
nnoremap <silent> \y <Plug>(coc-type-definition)
|
||||
nnoremap <silent> \i <Plug>(coc-implementation)
|
||||
nnoremap <silent> \r <Plug>(coc-references)
|
||||
nnoremap \n <Plug>(coc-rename)
|
||||
vnoremap \f <Plug>(coc-format-selected)
|
||||
nnoremap \f <Plug>(coc-format-selected)
|
||||
command! -nargs=0 Format :call CocAction('format')
|
||||
command! -nargs=? Fold :call CocAction('fold', <f-args>)
|
||||
|
||||
|
@ -1049,6 +1049,11 @@ nnoremap <space>dd :DD<CR>
|
|||
nnoremap <space>bx :w\|bd<cr>
|
||||
" sync highlighting from start
|
||||
nnoremap <silent><space>ss :syntax sync fromstart<CR>
|
||||
" Chain multiple path completions with / key. Selects the first suggestion if
|
||||
" no current selection. Use ctrl-y to finish completion as normal.
|
||||
inoremap <expr> / pumvisible()
|
||||
\ ? len(v:completed_item) ? '<C-Y><C-X><C-F>' : '<C-N><C-Y><C-X><C-F>'
|
||||
\ : '/'
|
||||
|
||||
"}}}
|
||||
" terminal{{{
|
||||
|
|
Loading…
Reference in New Issue