diff --git a/README.md b/README.md index 4190bd6..dd971bf 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [List Of Plugins](vim/list-of-plugins.md) - [Marks Across Vim Sessions](vim/marks-across-vim-sessions.md) - [Moving To A Specific Line](vim/moving-to-a-specific-line.md) +- [Navigating By Blank Lines](vim/navigating-by-blank-lines.md) - [NETRW Listing Styles](vim/netrw-listing-styles.md) - [Next Modified Buffer](vim/next-modified-buffer.md) - [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md) diff --git a/vim/navigating-by-blank-lines.md b/vim/navigating-by-blank-lines.md new file mode 100644 index 0000000..51da148 --- /dev/null +++ b/vim/navigating-by-blank-lines.md @@ -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`.