spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.62k forks source link

The <C-K> didn't work out when you use vim-snippest in youcompleteme plugin. #755

Open friddle opened 9 years ago

friddle commented 9 years ago

The didn't work out when you use vim-snippest in youcompleteme plugin.

ghost commented 9 years ago

I use neosnippet with YCM plugin, you have to manually add mapping as follows:

imap <C-k> <Plug>(neosnippet_expand_or_jump)
yqrashawn commented 8 years ago
"M 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 = "<C-k>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"

My problem is I can expand ultisnips at the beginning of a line use , but can't expand it in '()' or after '.' etc.

Is this problem have somthing to do with spf13?

abinashmeher999 commented 8 years ago

@ghost This line is already there in line 780 of .vimrc. Could you please elaborate where do I add it?

barraponto commented 8 years ago

When using YouCompleteMe, the snippet expansion is remapped to <C-j> (ctrl + J). See https://github.com/spf13/spf13-vim/blob/3.0/.vimrc#L720