Implement Ctrl-U and Ctrl-D in Vintage mode

David Baumgold 8 years ago updated by Seth Alexander Bird 7 years ago 3

Vintage mode is amazing, but two of the commands I use most often in Vim to get around aren't implemented: Ctrl-U to scroll half a page up, and Ctrl-D to scroll half a page down. Here's the official vimdoc, so you can see what I mean:


Could these scroll motions be implemented?

CTRL-e and CTRL-y are also really useful.

This is mostly how I navigate in Vim, essential really.

Try this:

{"keys": ["ctrl+u"], "command": "scroll_lines", "args": {"amount": 40.0}, "context": [{ "key": "setting.command_mode" }]},
   {"keys": ["ctrl+d"], "command": "scroll_lines", "args": {"amount": -40.0}, "context": [{"key": "setting.command_mode"}]}

source: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=2908