Gerald Lai:

>> 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.
> I just posted a new tip with regards to your question:
>    http://www.vim.org/tips/tip.php?tip_id=1228

Thanks Gerald - pumvisible() is exactly what I was looking for.
I love Vim and it's community!

Kind regards

Sven

Reply via email to