User Tools

Site Tools


vi_survival

This is an old revision of the document!


The VIsual Screen Editor

VI has three modes: input mode, cursor movement and command mode. Movement of the cursor around the buffer is done with keys h, j, k and l aka VI Keys. The default mode is command mode. From there you can type i or a to insert or append data in the editing buffer. Press <ESC> to return to cursor movement mode and press : to enter command mode.

Command Description
rrread in a file
qquit - you can combine commands, like :wq to write and quit
wwrite a file - a :wq! will force a write and quit
s
vi_survival.1583972668.txt.gz · Last modified: 2020/03/12 00:24 by smj