Emergency vi

Previous Index Next

Start by doing vi filename
To quit::q<ret>
To quit forcibly::q!<ret>
To save::w<ret>
Delete a line:dd
Copy line:YMove to destinationp
Delete character:x
Insert text:ithe text<Esc>
Append text:athe text<Esc>
Replace text:Rthe text<Esc>
Goto line:linenumberG
Top of document:1G
Bottom of document:G
Beginning of line:^
End of line:$
Search (forward):/the text<ret>

If unsure if still in insert/append/replace mode hit <Esc>

Copyright Dr. David Alan Gilbert 2001. vitalk @ treblig.org - Hacked together with dsh