VI Tutorial
VI Tutorial
Deleting Text
x Delete the character under the cursor
dd Delete the current line
d$ Delete to the end of the line
Repeating Commands
. Repeat last command
nc Repeat command c n times
3dd Delete three lines
4w Move four words to the right
Changing text
~ Change the case of the current character
r Change the current character
R Overwrite
Visual Mode
v Enter visual mode
Use arrow keys to select text
y Copy selected text
p Paste text
Search
/text Search for text
:%s/text/newtext/ Search for text and replace with newtext
Other
:e file Edit another file
.vimrc