Re:What is in your .vimrc
by unfasten on Saturday August 20, 2011 @07:57PM
(#2908094)
Insert single characters: Press 's' in normal mode and the next character you type will be inserted at the cursor and put you back in normal. Press 'S' (Capital S or shift+s) and the character will be inserted after the cursor like 'a' append. This is also repeatable, so you can insert a character and then do '5.' to insert it 5 times, still leaving you in normal mode afterwards. Being repeatable is the reasoning I read for it being a function. I picked this up from the Vim wikia site awhile ago.
Press 'F5' to run the file you're editing, assuming it has a shebang.
I don't actually use this one a lot, but it can be handy. F10 to switch between the line numbering modes, in Vim versions that have relative line numbering (>= 7.3)
[ Parent
| on HN ]
There are no comments on this comment yet.