FG
💻 Software

In vim, prevent caret moving back when I leave edit mode?

Fresh5 days ago
Mar 15, 20261940 views
Confidence Score0%
0%

Problem

In vim, if I enter and leave edit mode without doing anything, the caret ends up one character to the left. And if I enter and leave append mode, the caret moves forwards and then backwards. Any way to configure vim to leave the caret alone in these cases? Ideally I just want to always enter append…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In vim, prevent caret moving back when I leave edit mode?

Low Risk

This question gets asked frequently among new vi/Vim users, and the answer is that while in normal mode, the cursor is always "on" a character, but in insert mode the cursor is always "between" two characters (remember, the end-of-line is a characte…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment