Contents / Previous / Next


Vi: Move, Delete and Paste

Change to normal mode with <ESC>.

Move: Use either the arrow keys or the hjkl keys:

 h (left)    j (down)    k (up)    l (right) 

 Getlocation and file status:   Ctrl-g  
 Moves to end of the file:      Shift-G  
 Moves line NUMBER:             NUMBER Shift-G  

Delete:
 Delete a character:     x
 Delete a line:          dd

For multiple deletion precede command with a number.
 Delete 5 characters:     5 x
 Delete 7 lines:          7 dd

Paste: inserts all you deleted with the preceding delete.
 Paste:	                 p