Jumping long distances
published January 21st, 2012
Holding down 'j' is a vim anti-pattern. Here are some better ways to leap long distances.
Commands mentioned:
- nG - jump to line n ("line 5, Go")
- C-o - jump backwards ("out")
- C-i - jump forwards ("in")
- L - jump to bottom of screen ("low")
- M - jump to middle of screen ("middle")
- H - jump to top of screen ("high")
- zt - put this line at the 't'op of the screen
- zb - put this line at the 'b'ottom of the screen
- zz - put this line at the middle of the screen