| vi mode |
input mode |
command mode |
| |
ESC to end input |
|
- cursor |
i - insert |
:q - quit |
| h j k l - cursor |
a - append |
:q! - quit no save |
| CTL-f - forward screen |
A - append at EOL |
:w - write |
| CTL-b - backward screen |
O - open line |
:wq - write and quit |
| G - end of file |
r - replace character |
:num goto line num |
| x - delete character |
R - overwrite |
/str - find str |
| dw - delete word |
|
:set all - vi settings |
| dd - delete line |
|
:r file - import file |
| yy - copy line in buffer |
|
|
| D - delete to EOL |
|
|
| p - paste/put buffer |
|
|
| u - undo last command |
|
|
| CTL-r - redo last undo (linux/vim) |
|
|
| . - repeat last editing command |
|
|
| n - find next occurrence of string |
|
|
| cw - change word |
|
|
| # command - repeate command # times |
|
|
|