vi Short reference.pdf
vi Editing commands
| vi command | description |
|---|---|
| i | insert at the current position |
| I | insert at the beginning of line |
| a | append just after the current cursor position |
| A | append at the end of line |
| o | Open a new line below the current line |
| O | Open a new line above the current line |
vi Navigation commands
| vi command | description |
|---|---|
| 0 | move to beginning of the current line |
| $ | move to end of line |
| H | move to the top of the current window (high) |
| M | move to the middle of the current window (middle) |
| L | move to the bottom line of the current window (low) |
| 1G | move to the first line of the file |
| 20G | move to the 20th line of the file |
| G | move to the last line of the file |
No comments:
Post a Comment