Opening, Writing, and closing Files	(use <return>)	
vi filename	Open file named filename (UNIX shell command)	
:w 	Write changes into default file	
:w filename	Write changes into file named filename	
:q	Quit vi	
:wq	Write changes into file and quit vi	
:q!	Quit without writing changes into file	
Inserting Text	(vi command mode)	
a 	Add text to the right of the current cursor locations	
i 	Insert text to the left of the cursor	
o 	Open up a new line below the current line	
O	Open up a new line above the current line	
r 	Replace a single character	
R	Replace (type over) text	
<escape>	Return to command mode	
Moving the Cursor 	<vi command mode)	
h 	Move one space left	
j 	Move one space down	
k 	Move one space up	
l 	Move one space right	
<spacebar>	Move one space right	
<backspace>	Move one space left	
<return>	Move to beginning of next line down	
-	Move to beginning of previous line	
Correcting Mistakes	(vi command mode)	
x 	Delete one character	
dd 	Delete entire line	
ndd 	Delete n lines	
u 	Undo most recent change	
U	Undo all changes on current line	
Checking Spelling 	(UNIX shell command)	
spell filename	List misspelled words found in filename	
Searching 	(vi command mode)	
/searchword 	Search forward through the file for the first occurrence of searchword	
/	Continue search for the next occurrence of searchword	
?searchword	Search backward for the first occurrence of searchword	
?	Continue search backward for the next occurrence of searchword	
Jumping to a line	(vi command mode)	
n+	Jump forward (down) n lines	
n- 	Jump backward (up) n lines	
nG 	Go to line number n	
G	Go to the bottom of the file