- k - up
- j - down
- h - left
- l - right
- 0 - start
- ^ - firs non-blank character
- $ - last non-blank character
- g_ - last non-blank character
Following are the three navigation which can be done in relation to text shown in the screen.
- H – Go to the first line of current screen.
- M – Go to the middle line of current screen.
- L – Go to the last line of current screen.
- ctrl+f – Jump forward one full screen.
- ctrl+b – Jump backwards one full screen
- ctrl+d – Jump forward (down) a half screen
- ctrl+u – Jump back (up) one half screen
- i - before current character
- I - beginning of line
- a - after current character
- A - end of line
Command | What it does
--------------------------------
:set number | Shows line numbers
:set nonumber | Hide line numbers
- :badd - add buffer (will autocomplete to file names)
- :bd - (buffer delete) closes current buffer (takes buffer number, name or range, defaults to current)
- :bw - (buffer wipeout) (takes buffer number, name or range, defaults to current)