omnicomplete - Vim omni completion: continue typing to select desired item -
consider scenerio when have typed:
file.f when type ctrl-xctrl-o omni-completion popup shown , first item selected. see:
file.fileno --------- fileno() <-- highlighted flush() --------- notice text have typed ("file.f") has changed to:
file.fileno i can move selection down in list 'flush', press enter , end
f.flush() but continue typing desired method name instead of using arrow keys. i.e. type "file.f", "ctrl-x ctrl-o", "l" , either
file.fileno --------- flush() --------- or
file.fileno --------- fileno() flush() <-- highlighted --------- is possible? maybe omni-completion settings have changed, or should use different keys combination instead of ctrl-xctrl-o?
add: set completeopt+=longest .vimrc file.
this tell omnicomplete insert longest common text of matches.
for more information, run command :help completeopt while in vim.
Comments
Post a Comment