Vincent Linsong wrote:
> >>>This is by design. Some people mentioned that when using the longest
> >>>common string the first entry should not be selected. Now you can use
> >>>CTRL-N to select the first entry. Previously you would need to do
> >>>CTRL-N CTRL-P to get the first entry.
> >>>
> >> I use the omnicompletion like this:
> >> I set completeopt=menu,preview,longest . Now consider I input some
> >>characters of a function's name, for example, the function's name is
> >>'helloWorld' and I input 'hel'. I am not glad to remember the exact
> >>function name, so I invoke omnicompletion by <C-X><C-O>, then I know
> >>what is the exact name of the function, instead of press <C-N> or <C-P>
> >>multiple times to select it from the menu, I choose to input more
> >>characters and when function's name becomes the top entry on the menu, I
> >>will press <C-Y> to accept it. I think this way is very convenient and I
> >>know many intelligence like tools works in this way.
> >> If others have enough reason to change the behavior, would you like
> >>to add a new option to make two ways work ? Thanks a lot!
> >
> >I think the current behavior is best for most people. For you, instead
> >of pressing CTRL-Y you can use CTRL-N and continue typing, that normally
> >stops completion.
>
> If I press CTRL-N, then what I inputed will be replaced with the first
> entry of the completion menu, but that is not what I want.
I don't get it. You type characters until the function you were looking
for is the first match. Then CTRL-N will select that match and you're
done.
There is a conflict between saying that the top entry of the menu is the
one you want and CTRL-N not getting what you want.
--
A poem: read aloud:
<> !*''# Waka waka bang splat tick tick hash,
^"`$$- Caret quote back-tick dollar dollar dash,
[EMAIL PROTECTED] Bang splat equal at dollar under-score,
%*<> ~#4 Percent splat waka waka tilde number four,
&[]../ Ampersand bracket bracket dot dot slash,
|{,,SYSTEM HALTED Vertical-bar curly-bracket comma comma CRASH.
Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand Rapids, MI.)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///