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:
@@ -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
13
vim/center-the-cursor.md
Normal 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
|
||||
Reference in New Issue
Block a user