Monday, August 5, 2013

neocomplcache-ultisnips configuration question

Hi

I am using Ultisnpis + neocomplcache + neocomplcache-ultisnips (by JazzCore). I know how I want things to work, but I cannot get configuration to reflect it (I am assuming it is possible).

So I am posting here in hope of someone with more knowledge of how to configure these plugins enlightens me.

My intent is:
- if I hit TAB, and there is a perfect match for a ultisnips snippet, expand it: WORKING right now.
- if I hit TAB but there is no ultisnips snippet perfect match, show menu with completion candidates (including snippets). For now I have this on C-\ instaed of TAB
- once the menu is showing, if I hit TAB expand the current selection: now if I hit TAB, the next to the current one is being expanded

My .vimrc contains this:

" ultisnips {
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsListSnippets="<c-tab>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
" Make sure my plugins override the default ones:
let g:UltiSnipsDontReverseSearchPath="1"
" }

" neocomplcache {
" config taken form https://github.com/dsummersl/dotvim/blob/master/_vimrc
" Launches neocomplcache automatically on vim startup.
let g:neocomplcache_enable_at_startup = 1
" automatically insert the /# delimiter for vim/files
let g:neocomplcache_enable_auto_delimiter = 1
" make the start length so long that it doesn't turn on 'automatically'
let g:neocomplcache_auto_completion_start_length = 30
" Use camel case completion.
let g:neocomplcache_enable_camel_case_completion = 1
" Use underscore completion.
let g:neocomplcache_enable_underbar_completion = 1
let g:neocomplcache_disable_auto_complete = 1
let g:neocomplcache_enable_auto_select = 0

" turn off neo complete for omni patterns (python in particular is annoying)
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.python = ''

" only match ultisnips completions
inoremap <expr><C-\> neocomplcache#start_manual_complete(['ultisnips_complete'])
" match neo style.
inoremap <expr><C-space> neocomplcache#start_manual_complete()
inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
" }

thanks indeed,
xavier

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: