User Tools

Site Tools


vi_survival

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vi_survival [2020/03/12 00:14]
smj created
vi_survival [2020/03/12 00:24] (current)
smj
Line 1: Line 1:
 **The VIsual Screen Editor** **The VIsual Screen Editor**
  
-VI has two modes: input mode 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.  To return to command mode, type the <ESC> key.+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^ 
 +|r|//r//read in a file| 
 +|q|//q//uit - you can combine commands, like //:wq// to write and quit| 
 +|w|//w//rite a file - a //:wq!// will force a write and quit| 
 +|s|//s//earch - try s/old/new/g| 
 + 
 + 
  
-^c 
vi_survival.1583972055.txt.gz · Last modified: 2020/03/12 00:14 by smj