View Single Post
  #2  
Old 06-08-2009, 03:53 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by gaeorn View Post
I'm not sure this is the right place to ask for vi support.

In any case, "i" is the vi insert command which inserts before the character under the cursor. The command you are looking for is "a" which is append and will insert after the character under the cursor.

The only case where "i" should not insert before the last character on a line is if the line was empty to begin with.
Yep.

Also, shift-a will edit at the end of a line no matter where you are in the line. So if you are at the beginning of a line and you want to put something at the end, shift-a and voila! Likewise shift-i will do the same at the beginning of a line.
Reply With Quote