Wednesday, April 08, 2009

Essential VI Commands

Command Action:

vi Starts the Vi editor
vi <filename> Starts Vi and opens the given file for editing
:q! Exits the Vi editor without saving changes (quit!)
:wq! Exits the Vi editor and saves changes (write and quit!)
:set nu Turns on line numbering
esc Exits text insert mode
i Enters text insert mode
Arrow keys Navigates the cursor
Backspace key Deletes previous character
Delete Deletes selected character

No comments:

Post a Comment