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

Posted by romkyns on Super User See other posts from Super User or by romkyns
Published on 2011-01-07T00:52:36Z Indexed on 2011/01/07 1:55 UTC
Read the original article Hit count: 246

Filed under:

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 mode, but without moving the caret when I enter or exit the mode.

(Currently I usually use insert mode because it doesn't mess up my caret position upon entry. That is, except when I need to append to the end of the line, in which case I swear at vim for behaving in such an archaic fashion, press Esc and enter append mode.)

© Super User or respective owner

Related posts about vim