Screen/viewport movement commands in Vim and their mnemonic

Screen/viewport movement commands in Vim and their mnemonic

TLDR;

  • z z or z .: move the current line to center (in German: zentrum) of the view port.
  • z t: move the current line to top of the view port.
  • z b: move the current line to bottom of the view port.
  • ctrl y: move the view port up one line. Yore (long ago), or, Yesterday.
  • ctrl e: move the view port down one line. Efter means after in Swedish.
  • ctrl u, ctrl b: move the view port up/backward half/one page. Backward has more characters than up, so the movement takes further.
  • ctrl d, ctrl f: move the view port down/forward half/one page. Forward has more character than down, so the movement takes further.

Source: https://stackoverflow.com/questions/3458689