I am using the setup I found in this answer: UltiSnips and YouCompleteMe
namely:
" if you use Vundle, load plugins:
Bundle 'ervandew/supertab'
Bundle 'Valloric/YouCompleteMe'
Bundle 'SirVer/ultisnips'
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
I am working on a tex
document, and trying to insert the snippet in the screenshot. Pressing tab, or ctrl-n will cycle me through the options presented, but I can't for the life of me insert the snippet. Pressing enter, space of just continuing with { just behaves as if I were typing (which I guess is what is to be expected, but I had no better idea).
What do I need to do to insert the snippet shown there?
<c-j>
and<c-k>
? I am using deoplete and have no problem in inserting snippets.<C-Y>
work if you have the snippet highlighted?let g:UltiSnipsJumpForwardTrigger = "<c-j>"
doesn't do anything, I press ctrl-j and nothing happens.