4 ms·
Find and replace on steroids, meaning the flexibility of moving the cursors around in all instances of a find and making edits near the beginnings and ends of l
by Antrikshy 9y ago
Find and replace on steroids, meaning the flexibility of moving the cursors around in all instances of a find and making edits near the beginnings and ends of lines, for example.
- saghm 9y agoNot trying to diminish the use of multiple cursors (I have certain fondness for them despite not using them extensively due to my choice of editor), but using regexes you can still do that (i.e. with /^/ and /$/, which I use constantly with vim-style search and replace)
- thiagobbt 9y agoPressing ctrl-d a couple of times, seeing what will change, and typing something is most of the time easier and faster than thinking about a regex. At least that's how I feel
- saghm 9y agoYep, I can see that being easier depending on what you prefer, I just wanted to point out that the feature wasn't unique to multiple cursors, since it was being described as "find and replace on steroids".
- y4mi 9y agoI'm one of those vim enthusiasts which installs vim keybinding in pretty much every editor i use and still agree.
- mrkgnao 9y agoEmacs' evil-mode provides "live" search-and-replace. I can't imagine using the vanilla Vim behavior any more.
- saghm 9y agoI've been trying out spacemacs for the past few weeks, and I really love this feature as well
- coldtea 9y ago>Find and replace on steroids For people who don't know regular expressions...
- mixedCase 9y agoOr Vim macros.
- gjjrfcbugxbhf 9y agoI find that both have their uses.
- flukus 9y agoThat's a much better analogy. Multiple cursors have the same use cases as macros, they are just performed live instead of saved and replayed.
- evan_ 9y agoYes, for most people.
- coldtea 9y agoThat shouldn't be coding or should invest some hours for learning regexes...
- AwesomeBean 9y agoTry doing this with regular expressions. https://gifs.com/player/G6m3vQ https://gifs.com/player/G6m3vQ