Martin Stubenschrott wrote:
On Wed, Apr 26, 2006 at 10:35:30AM +0800, Linsong wrote:
My main point is: I don't want to select entry in the completion menu by
pressing CTRL-N or CTRL-P, instead, I want to input enough characters to
make correct entry become the first entry and it is highlighted, then I
can use CTRL-Y(yes, I have mapped <Enter> to CTRL-Y since I am tempted
to use <Enter>) to confirm the completion.
Then just :inoremap <C-Y> <C-N><C-Y>
That should should do what you expect now (untested).
Thanks, martin, it works well.
I really disliked old behavior, and think the current completion with
'longest' and ctrl-n is what it should behave like since it's more
logical as you only need <c-x><c-o> and <c-n> and not yet another key like
<c-y>.
But I am still not very clear why the first entry in the menu is not
highlighted? Is it not reasonable? I don't get any point that
highlighting the first entry will make the behavior unreasonable. I
think there shoud be an very good reason and I really want to know.
Anyone can give some hints? :)
Thanks a lot!
BR
Vincent