Vim LogoI have always been a fan of Vim. Despite the steep learning curve, this command line based editor has been one of the most productive tool i’ve ever used. There are tons of tips to improve your productivity with Vim. In this blog post I am going to share some advanced Vim tips i’ve been using. I am trying not to include any basic stuffs, just the advanced ones that makes me “wow” when discovered.

Movement

Scrolling

Move screen without moving cursor

  • Ctrl-e Moves screen up one line
  • Ctrl-y Moves screen down one line

  • zz - move current line to the middle of the screen
  • zt - move current line to the top of the screen
  • zb - move current line to the bottom of the screen

Move screen and cursor

  • Ctrl-u Moves screen up ½ page
  • Ctrl-d Moves screen down ½ page
  • Ctrl-b Moves screen up one page
  • Ctrl-f Moves screen down one page

  Know some more awesome keystrokes that are not covered yet? Feel free to leave a comment below