@@ -19,6 +19,8 @@ call plug#begin('~/.vim/plugged')
19
19
"Plug 'wannesm/wmgraphviz.vim'
20
20
Plug 'liuchengxu/graphviz.vim'
21
21
Plug 'skywind3000/vim-auto-popmenu'
22
+ "++ vim snippets engine
23
+ Plug 'SirVer/ultisnips'
22
24
"++ vim input method
23
25
Plug 'ZSaberLv0/ZFVimIM'
24
26
Plug 'ZSaberLv0/ZFVimJob'
@@ -462,6 +464,8 @@ call plug#end()
462
464
let g:coc_snippet_prev = '<c-k>'
463
465
" Use <C-j> for both expand and jump (make expand higher priority.)
464
466
imap <C-j> <Plug>(coc-snippets-expand-jump)
467
+ " Use <leader>x for convert visual selected code to snippet
468
+ xmap <leader>x <Plug>(coc-convert-snippet)
465
469
" Make <tab> used for trigger completion, completion confirm, snippet expand and jump like VSCode.
466
470
inoremap <silent><expr> <TAB>
467
471
\ pumvisible() ? coc#_select_confirm() :
@@ -487,6 +491,7 @@ call plug#end()
487
491
\ 'help'
488
492
\]
489
493
494
+
490
495
"-- "ludovicchabant/vim-gutentags"
491
496
" gutentags 搜索工程目录的标志,碰到这些文件/目录名就停止向上一级目录递归
492
497
let g:gutentags_project_root = ['.root', '.svn', '.git', '.hg', '.project']
@@ -702,7 +707,6 @@ call plug#end()
702
707
703
708
"-- "sheerun/vim-polyglot"
704
709
705
-
706
710
"-- "kshenoy/vim-signature"
707
711
let g:SignatureMap = {
708
712
\ 'Leader' : "m",
0 commit comments