1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-06 00:28:01 +00:00

Add Navigating By Blank Lines as a vim til.

This commit is contained in:
jbranchaud
2015-10-19 10:04:21 -05:00
parent caa2d50db7
commit 4cb8447641
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# 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 around,
but can help move you around a bit quicker than tapping `k` and `j`.