System information

© Agilent Technologies 2001–2002 Administering Agilent 3070 Systems (MS Windows NT and 2000) 8-21
Chapter 8: Reference
vi and viw Editor
Quick Reference
See Table 8-10 for a vi and viw editor quick reference.
Keyboard keys are in { }.
NOTE
If uncertain whether to use forward-slashes or
back-slashes, see Forward-Slashes versus
Back-Slashes in Command Lines Containing
File Paths on page 8-8.
Table 8-10 vi and viw editor quick reference
To Do This . . . Enter This in Command Mode . . .
Getting started with vi
Create or edit a file in a Korn shell window vi <filename>
Create or edit a file in a vi window viw <filename>
Make sure you are in command mode
{ESC}
Show if you are in command or insert mode
:set showmode
Find out what file you are in
{CTRL}g
Moving within a file
Move the cursor left or right h or l or arrow keys
Move the cursor up or down k or j or arrow keys
Cursor to end of line
$
Cursor to beginning of line 0 (Zero) or ^