August 1999
Intermediate to advanced
328 pages
8h 58m
English
vi is Unix's omnipresent, ubiquitous, cryptic command-line text editor.
There are two vi modes: Command mode and Insert mode. Table A.5 shows the commands that invoke Insert mode. Once you are in Insert mode, you get back to Command mode by pressing the Escape key.
| vi Insert Commands | |
|---|---|
| Insert Command | Meaning |
| a | Append after the cursor |
| A | Append at the end of the line |
| c | Begin change operation |
| C | Change to the end of the line |
| i | Insert before the cursor |
| I | Insert at the beginning of the line |
| o | Start a blank line below the current line |
| O | Start a blank line above the current line |
| R | Begin overwriting text |
| s | Substitute a character |
| S | Substitute entire line |
The normal cursor keys are not used to move around in vi. Table A.6 shows some vi movement commands.
| Some vi Movement Commands ... |
|---|
Read now
Unlock full access