News for hackers. Stuff that matters.
Re:Show HN: vim-multiple-cursors - True Sublime Text style m... by losvedir on Sunday April 14, 2013 @10:21AM (#5546933)
> with multiple cursors you have to select every single comma to 'initialize' the cursors.

I hear this. Hopefully, the author will be able to implement what Sublime has: a find all field (which accepts regular expressions), and results in multiple cursors on all the matches.

I do this all the time in Sublime and it's so natural:

Cmd+F, /regex/, opt+Enter, [replace, or commands or whatever]

It's just as fast as your usual find and replace or quick macro, except that you have instant feedback, are able to undo, jump around by word, or (with vim-mode), use t or f to find a character, ci", etc.

Selecting a match one case at a time is great, though, when you need to skip some matches. Say you have `old_var`, `old_var2`, and `old_var3`. Just start at the top of the function, and match, match, skip, match, skip, [type and replace]. Sure, you could do a regex on old_var[^\d], but depending on what you're matching and what you're skipping it sometimes is just not worth puzzling out the right regex.

There are no comments on this comment yet.