Today I Learned

hashrocket A Hashrocket project

Navigating By Blank Lines

Use vim to open a file full of code (or text) that has some blank lines. Move the cursor to the middle of the file. Then start hitting { or }. You'll see that the cursor jumps from blank line to blank line.

Use { to jump to the closest blank line behind the cursor. Use } to jump to the closest blank line ahead of the cursor.

This may not seem like the most practical or obvious way to navigate, but it can help move you around a bit quicker than just tapping k and j.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.