mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Center The Cursor as a vim til.
This commit is contained in:
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