vim: Add some "z" keybindings for scrolling (#18928)

Release Notes:

- vim: Added a few "z" keybindings for scrolling
This commit is contained in:
Frank Sheiness 2024-10-14 02:00:37 -06:00 committed by GitHub
parent 325f106c8b
commit 5b207ba238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,6 +128,10 @@
"shift-m": "vim::WindowMiddle",
"shift-l": "vim::WindowBottom",
// z commands
"z enter": ["workspace::SendKeystrokes", "z t ^"],
"z -": ["workspace::SendKeystrokes", "z b ^"],
"z ^": ["workspace::SendKeystrokes", "shift-h k z b ^"],
"z +": ["workspace::SendKeystrokes", "shift-l j z t ^"],
"z t": "editor::ScrollCursorTop",
"z z": "editor::ScrollCursorCenter",
"z .": ["workspace::SendKeystrokes", "z z ^"],