Sublime Forum

Vintage commands

#1

Hi,

I’m looking to modify how text object commands work to make them less like Vim or more like Emacs Evil-mode, but I can’t figure it out. I’ve found keymap definitions and see commands like:

vi_expand_to_brackets
vi_expand_to_quotes

But I can’t find where they are defined. Can anyone point me in the correct direction assuming that’s what I’m looking for.

What I want to do is.

let x = “hello”

with vintage if I am at the begining of the line and do ci" then i ended up with

let x =""

where my cursor is in between the two quotes.

Evil for emacs does this for all text objects so

fun bar(x: Bool)

if I do ci(

I ended up with

fun bar()

with my cursor inside the ()

I’d like to make vintage have the same behavior but havent been able to figure out how to make it happen.

0 Likes