Q:

How to set cursor to after last character in vim?

Why can't I insert at the end of a line in vim if there's no whitespace at the end? Let's take for example my SSH config file:

I try to use $, l, e, but I can't seem to get to the end of the word. When I start typing in insert mode, I get the following:

What gives? How do I make sure I can insert at the very end of a line?

A:

What you want is to use is the a command instead of the i command to enter insert mode.  Or if you want to jump to the end of the line and start insert mode, use A.  Note that I will jump to the beginning of the line and enter insert mode.

A:

You can also put set ve+=onemore into your .vimrc; that'll let you put the cursor onto the "empty" space at the end of every line. 
Note that $ will still put you on the last character;
you'll need to use something like $l (lowercase "L"), 
/$Enter or 
99| (vertical bar).

