I am using terminal vim 7.4 and standard completion, i.e.
<C-x>,<C-p>
for word completion<C-x><C-o>
omnicompletion<C-x>,<C-f>
for file completion etc,
~/.vimrc completion config
filetype plugin on
set omnifunc=syntaxcomplete#Complete
set completeopt=longest,menuone,preview
set iskeyword+=-
set dictionary=/usr/share/dict/words
set infercase
So say I'm writing some PHP and I
- type
var_d
(beginning ofvar_dump()
) - then use omnicompletion Ctrl - x,Ctrl - o
Vim is quick at summoning the completion list and incrementally narrowing the results. - Then I navigate up the completion menu to
var_dump
and select with<C-y>
At this point vim has a delay of about 1 to 1.5 seconds before inserting the text into the line itself.
Its not a "visual" delay either, if I type anything during the delay period vim discards the completion selection - and I need to start the completion again.
The delay seems strange and unnecessary because all the hard work of searching and sorting results has been done at this point, all vim needs to do is just put the item into the line.
Is it possible to "fix" this delay so vim just instantly puts the selection in the line?