On Thu, 11 May 2006, Sven Brueggemann wrote:
Hello,
I select a match from the completion window that pops up
after CTRL-X CTRL-N with enter. This works fine, if I scrolled
the list with the cursor keys. But if the first match is what
I want, I press enter without using the cursor keys first. In
this case, pressing enter inserts a line break into the text.
I know that I should use CTRL-Y to select a match from the
popup, but I'm so used to do that with enter that this
inconsistency in the popups behaviur is quite annoying to
me.
The help says, CTRL-X enters the "CTRL-X mode". Are there
CTRL-X-mode mappings I could use to map enter to CTRL-Y? If
so, how? I didn't find anything about that in the help.
Any hints are appreciated.
I just posted a new tip with regards to your question:
http://www.vim.org/tips/tip.php?tip_id=1228
Please take a look.
HTH :)
--
Gerald