Sublime Forum

[Bug,ST2] Vintage and ci (change inner)

#1

Product: SublimeText 2.0.1
Platform: MacOSX 10.8.3
Keyboard: Italian

Description Of The Issue:
I’ve enabled the SublimeText2 Vintage package.
Everything works fine except for the “change inner” command in conjunction with the square brackets and the curly brackets.
The “change inner” command in conjunction with the parentheses works fine.

How To Reproduce:
Enable the Vintage package.
Past this code

{
   "Hello"
}

Move the cursor in front of the “Hello” word, and in command mode type

ci + {  (ALT+SHIFT+è on the italian keyboard)

What Is The Expected Result:

{}

What is The Current Result:

{
    {}
}
0 Likes

#2

I have the same issue in Windows, I mentioned it yesterday in this thread File change detection

[quote=“MrShift”]Hi, I have tried to find a way to select the characters within curly braces in VI mode.
The command I write is “vi{” (exactly:** v i AltGr+7** )
But the result I get is that all the characters from my cursor and back to first linebreak.
If I use the sublime command ctrl-alt-m it works great, but I would rather use the VI command, vi then character.

Can you guys try this out and see if you have the same issue. Or am I alone?

EDIT:
Forgot to mention I am using ST2 2.0.1[/quote]

Haven’t got an answer yet but this issue is with ci command aswell. You explained it pretty well. Only thing is that i did not really get the same result as you did.
Hopefully someone can shed some light on this matter.

0 Likes

#3

Working with 2.0.2 this still doesn’t work but there is another keybinding for the curly brackets:

To change the inner of a curly brackets

ciB

(source: vimdoc.sourceforge.net/htmldoc/motion.html#aB)

I couldn’t find anything for the brackets

0 Likes