FG

Vim completion - always suppress the newline after I select a suggestion with the Enter key

Fresh3 days ago
Mar 15, 20268013 views
Confidence Score0%
0%

Problem

Sometimes, after I select a suggestion (from the completion pop-up that appears when pressing Ctrl-N) using the Enter key, Vim will insert a newline and the cursor will be moved to the following line. This doesn't always happen - it seems that Vim tries to be smart about it and will only move me to…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim completion - always suppress the newline after I select a suggestion with the Enter key

Low Risk

What Vim does in response to your typing the <Enter> key while using insert completion depends on the state of the completion menu. The behavior of the menu is described here: and the behavior of various keys when using insert completion is describe…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment