Closed UncleBill closed 11 years ago
3.then, release it,
What's the release? Please tell me the keymappings in detail.
I think you should map to <C-e>
and <C-y>
.
inoremap <expr><C-y> pumvisible() ? neocomplete#close_popup() : "\<C-r>\""
inoremap <expr><C-e> pumvisible() ? neocomplete#cancel_popup() : "\<End>"
What's the release?
"head" turn back "he"
I re-edited it
I think you should map to
and .
I tried that, it still flicks. problem is:
OK. This is Vim's feature. Because, neocomplcache/neocomplete.vim uses keymappings hacks. Like this:
return !pumvisible() ? "" :
\ g:neocomplete#enable_auto_select ? "\<C-p>\<Down>" :
\ "\<C-p>"
If neocomplcache/neocomplete.vim opens popup menu, the first candidate is automatically selected.
But it is not intended behavior for auto completion.
So auto completion plugins uses the hack like "
But I and Nayuri Aohime developped this patch. https://groups.google.com/forum/?hl=ja&fromgroups#!topic/vim_dev/tVsk0pdOGvs if you apply this patch, this behavior is fixed in neocomplete.vim. So, you may support this patch in vim_dev. Because, Mr.Bram does not responce to it...
But if your Vim is too slow, it flicks. It is Vim's feature. I cannot fix it.
got it
The patch is already todo listed in long time...
I set
But the odd selecting behavior:
1.First, I type
he
, and the menu pops up2.automaticly select the 1st match
3.then, "head" becomes "he" again ( update)
3 steps make it flick