fix snippets
This commit is contained in:
parent
bb5a2c1188
commit
21022e3c29
5 changed files with 5 additions and 35 deletions
1
.vim/after/plugin/UltiSnips_after.vim
Symbolic link
1
.vim/after/plugin/UltiSnips_after.vim
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../../bundle/ultisnips/after/plugin/UltiSnips_after.vim
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
" These are the mappings for snipMate.vim. Putting it here ensures that it
|
|
||||||
" will be mapped after other plugins such as supertab.vim.
|
|
||||||
if !exists('loaded_snips') || exists('s:did_snips_mappings')
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
let s:did_snips_mappings = 1
|
|
||||||
|
|
||||||
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
|
|
||||||
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
|
|
||||||
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
|
|
||||||
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
|
|
||||||
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
|
|
||||||
|
|
||||||
" The default mappings for these are annoying & sometimes break snipMate.
|
|
||||||
" You can change them back if you want, I've put them here for convenience.
|
|
||||||
snor <bs> b<bs>
|
|
||||||
snor <right> <esc>a
|
|
||||||
snor <left> <esc>bi
|
|
||||||
snor ' b<bs>'
|
|
||||||
snor ` b<bs>`
|
|
||||||
snor % b<bs>%
|
|
||||||
snor U b<bs>U
|
|
||||||
snor ^ b<bs>^
|
|
||||||
snor \ b<bs>\
|
|
||||||
snor <c-x> b<bs><c-x>
|
|
||||||
|
|
||||||
" By default load snippets in snippets_dir
|
|
||||||
if empty(snippets_dir)
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
call GetSnippets(snippets_dir, '_') " Get global snippets
|
|
||||||
|
|
||||||
au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
|
|
||||||
" vim:noet:sw=4:ts=4:ft=vim
|
|
||||||
1
.vim/ftdetect/UltiSnips.vim
Symbolic link
1
.vim/ftdetect/UltiSnips.vim
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../bundle/ultisnips/ftdetect/UltiSnips.vim
|
||||||
1
.vim/ftdetect/snippets.vim
Symbolic link
1
.vim/ftdetect/snippets.vim
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../bundle/ultisnips/ftdetect/snippets.vim
|
||||||
2
.vimrc
2
.vimrc
|
|
@ -110,6 +110,7 @@ Plugin 'eagletmt/neco-ghc'
|
||||||
Plugin 'eagletmt/ghcmod-vim'
|
Plugin 'eagletmt/ghcmod-vim'
|
||||||
Plugin 'Shougo/vimproc.vim'
|
Plugin 'Shougo/vimproc.vim'
|
||||||
Plugin 'SirVer/ultisnips'
|
Plugin 'SirVer/ultisnips'
|
||||||
|
Bundle 'honza/vim-snippets'
|
||||||
Plugin 'JuliaLang/julia-vim'
|
Plugin 'JuliaLang/julia-vim'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
"https://git.wincent.com/command-t.git
|
"https://git.wincent.com/command-t.git
|
||||||
|
|
@ -215,6 +216,7 @@ let g:ConqueTerm_SendVisKey = '<Leader>ss'
|
||||||
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
|
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
|
||||||
let g:ycm_confirm_extra_conf = 0
|
let g:ycm_confirm_extra_conf = 0
|
||||||
let g:ycm_key_invoke_completion = "<Leader><Tab>"
|
let g:ycm_key_invoke_completion = "<Leader><Tab>"
|
||||||
|
let g:ycm_use_ultisnips_completer = 1
|
||||||
"let g:ycm_add_preview_to_completeopt = 1
|
"let g:ycm_add_preview_to_completeopt = 1
|
||||||
"let g:ycm_autoclose_preview_window_after_completion = 1
|
"let g:ycm_autoclose_preview_window_after_completion = 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue