seeyou wrote:I'm new to Sublime and loving it so far. I was just wondering if there was an equivalent to the VIM ability to select/delete everything between a pair of quotes, or brackets, or square brackets, etc? Or even just highlight it for deletion/overwriting?
seeyou wrote:As an added bonus, is there a way to make Sublime "Auto navigate" to the LAST auto-inserted quote/bracket? Ie. If I'm typing (' and Sublime inserts ') for me, but the cursor is still inbetween the quotes - if I press ) in Vim, it'll skip the cursor past the quote and the bracket, but in Sublime, I'd have to enter both quote and bracket to get to the end?
seeyou wrote:Thanks - your tip actually led me onto examining the key bindings file more closely, and there was another command (ctrl+shift+m) right next to yours which does exactly what I want inside any kind of bracket. Combined with another plugin I found in the forums to do the same more reliably for quotes, and mission accomplished.
Now if I could just figure out the second part, and how to get autocomplete to pull from all open files/project files..
sfranky wrote:for your first question, I think ctrl+shift+space does what you need. It also selects the brackets, though...
Kaske wrote:sfranky wrote:for your first question, I think ctrl+shift+space does what you need. It also selects the brackets, though...
Is there any way to select without brackets/quotes/etc.?
charlesroper wrote:The latest dev release now supports text objects in Vintage mode,
More at>> (examples).
(From examples)# "it" selects the text within the surrounding HTML/XML tag or container, with the greedier version being "at".
# "iw" selects the surrounding word, with the greedier version being "aw".
# "is" selects the surrounding sentence, with the greedier version being "as".
# "ip" selects the surrounding paragraph, with the greedier version being "ap".
Users browsing this forum: Google [Bot] and 29 guests