1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Center The Cursor as a vim til.

This commit is contained in:
jbranchaud
2015-11-03 19:17:19 -06:00
parent 6bc70ae60b
commit 499bb8c295
2 changed files with 14 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Buffer Time Travel](vim/buffer-time-travel.md)
- [Case-Aware Substitution With vim-abolish](vim/case-aware-substitution-with-vim-abolish.md)
- [Case-Insensitive Substitution](vim/case-insensitive-substitution.md)
- [Center The Cursor](vim/center-the-cursor.md)
- [Check Your Current Color Scheme](vim/check-your-current-color-scheme.md)
- [Close the Current Buffer](vim/close-the-current-buffer.md)
- [Coerce The Current Filetype](vim/coerce-the-current-filetype.md)

13
vim/center-the-cursor.md Normal file
View File

@@ -0,0 +1,13 @@
# Center The Cursor
If you've moved the cursor to a particular line towards the top or bottom of
the screen, you may want to center the screen on that line. This can be
achieved by hitting `zz`. It is a quick way to center the cursor and ensure
that you have an equal amount of context on either side of the line of
interest.
Take care to not mistake this for `ZZ` which will save and quit the buffer.
See `:h zz` and `:h z.` for more details.
h/t Chris Erin