Skip to content

Commit 39cce6a

Browse files
committedNov 14, 2021
Add snippet engine
1 parent 57bb54f commit 39cce6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎vimrc_unix

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ call plug#begin('~/.vim/plugged')
1919
"Plug 'wannesm/wmgraphviz.vim'
2020
Plug 'liuchengxu/graphviz.vim'
2121
Plug 'skywind3000/vim-auto-popmenu'
22+
"++ vim snippets engine
23+
Plug 'SirVer/ultisnips'
2224
"++ vim input method
2325
Plug 'ZSaberLv0/ZFVimIM'
2426
Plug 'ZSaberLv0/ZFVimJob'
@@ -462,6 +464,8 @@ call plug#end()
462464
let g:coc_snippet_prev = '<c-k>'
463465
" Use <C-j> for both expand and jump (make expand higher priority.)
464466
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)
465469
" Make <tab> used for trigger completion, completion confirm, snippet expand and jump like VSCode.
466470
inoremap <silent><expr> <TAB>
467471
\ pumvisible() ? coc#_select_confirm() :
@@ -487,6 +491,7 @@ call plug#end()
487491
\ 'help'
488492
\]
489493

494+
490495
"-- "ludovicchabant/vim-gutentags"
491496
" gutentags 搜索工程目录的标志,碰到这些文件/目录名就停止向上一级目录递归
492497
let g:gutentags_project_root = ['.root', '.svn', '.git', '.hg', '.project']
@@ -702,7 +707,6 @@ call plug#end()
702707

703708
"-- "sheerun/vim-polyglot"
704709

705-
706710
"-- "kshenoy/vim-signature"
707711
let g:SignatureMap = {
708712
\ 'Leader' : "m",

0 commit comments

Comments
 (0)