I'm using Vim on Cygwin. Basically, Vim won't allow me to move past the last character on a line when I'm in normal/command mode. It will let me move right before the last character but not after it. Any thoughts on what might be wrong?
1 Answer
Vim's cursor is always on a character position, never between character positions, even though some cursor shapes make it appear that the cursor is between character positions. When your cursor appears to be before the last character, it is probably on the last character. That is Vim's normal behavior. You can change it, if you like, by following saginaw's suggestion of using the command
:set virtualedit+=onemore
foobar
and you hit on the$
key, does your cursor land on ther
character ? (meaning if you hitx
you getfooba
) If you want your cursor to move past the last character on the line, you could try the following command::set virtualedit+=onemore