A BracketHighlighter plugin that implements Vintage's vi_move_to_brackets.
Vintage's %
command jumps between matching brackets. I wanted BH to drive this behavior because it can handle more bracket types. However, after some discussion with facelessuser, I learned that I would have to write a plugin to get the exact behavior I was looking for.
Make sure BracketHighlighter is installed.
-
Save
vimovetobrackets.py
underUser\bh_modules
. -
Add the following to your key bindings:
{ "keys": ["%"], "command": "bh_key", "args": { "plugin": { "type": ["__all__"], "command": "User.bh_modules.vimovetobrackets" } }, "context": [{"key": "setting.command_mode"}] }
-
Edit or create
User\bh_core.sublime-settings
and add"block_cursor_mode": true
.
Only tested on ST3:
- ST ver.: 3126
- Platform: windows
- Arch: x64
- Plugin ver.: 2.23.3
- Install via PC: True
- mdpopups ver.: 1.13.1
- backrefs ver.: 1.0.post1
- markdown ver.: 2.6.6
- pygments ver.: 2.1a0
- jinja2 ver.: 2.8