Every one who used linux/unix knows how veird Vi editor looks for a newbee. I have collected here a few usefull commands used in Vi with their meanings. Hope it is helpful.
| Vi Command |
Meaning |
|
| Del |
Erase Previous character |
| Ctrl+W |
Erase previous word |
| Ctrl+V |
Quote the Next Character |
| Esc |
Start Control Mode |
|
| Following Commands are available in Control Mode Only. |
|
| h |
Move cursor left one character |
| l |
Move cursor right one character |
| w |
Move cursor right one word |
| b |
Move cursor left one word |
| W |
Move to beginning of next non-blank word |
| B |
Move to beginning of preceding non-blank word |
| e |
Move to end of current word |
| E |
Move to end of current non-blank word |
| O |
Move to beginning of line |
| ^ |
Move to first non-blank character in line |
| $ |
Move to end of line |
|