Shortform for the "vi" Unix text editor. Note that upper and lower case is very important. Edit a file =========== vi filename where is the file to edit Cursor movement =============== h cursor left w next word l cursor right b previous word k cursor up j cursor down Text insert and delete ====================== vi has two modes, command mode and text insertion mode. To enter the insert mode type either i or a, i insert text at cursor a insert text one position right of cursor To exit text mode and enter command mode, press the ESC key x delete one character at cursor dd delete current line dw delete from cursor to end of word cw enters change word mode and changes word (from cursor to end of word) to what you key in. Exit cw by pressing the ESC key. u undo previous command Search and replace ================== /string search forward for , case sensitive ?string search backwards for , case sensitive n repeat previous search Save and exit ============= ZZ save current file and exit vi :q! exit vi without saving current file