4 ms·
I easily can: modifying multiple expressions that have different length, but the same ending and are separated with some lines of code in between. In vim I eith
by krick 8y ago
I easily can: modifying multiple expressions that have different length, but the same ending and are separated with some lines of code in between. In vim I either do it manually (because the movement is truly faster) or record a macro. In most "modern" text-editors I could do it with multiple cursors. Recording a macro always feels a bit more energy-consuming, than just making all the changes visually.
TBH, now that I'm mostly using an IDE with vim-plugin for work, I still prefer writing macros in such situations than using multiple cursors, because such situations are rare enough, and the power of habit is strong.
- ChanderG 8y agoSounds like a job for the "global" ex command (with or without a macro).