- To start editing from where the cursor is: i
- To create a new line below the line where the cursor is and start editing: o
- To create a new line above the line where the cursor is and start editing: O (upper case o)
Below are some commands that I think most commonly used. You need to be in command mode (from editing mode, punch the [Esc] button).
To make the cursor go to:
- start of the line: 0 (the number zero)
- end of the line: $
- start of next word: w
- start of previous word: b
- first line of the file: gg
- last line of the file: G
- line number x: :x (colon followed by the line number. e.g.: ':12' will bring the cursor to line 12).
- left, right, up, down you can just use the arrow
- To undo the last change: u (you can undo multiple times)
- To redo: [CTRL] r
- To delete one character: x
- to delete one word: dw
- to delete one line: dd