VIM Course

Moving

Go back

This is a list of the commands you will use to move your cursor/the screen.


Cursor

  • 0 : move the beginning of the line
  • CTRL-^ : same as 0
  • $ : move to the end of the line
  • xG or :x : go to line x
  • gg : start of the file
  • G : end of the file
  • j : move down
  • k : move up
  • h : move left
  • l : move right

Move the current screen

  • CTRL-F : go down one screen
  • CTRL-B : go up one screen

the unit of line skipped is the size of the line that can be shown on the screen.