|
Yeah, just recently I had to edit text like this 'name1',
'name2',
'name3',
to: 'name1': Enum.Name1,
'name2': Enum.Name2,
'name3': Enum.Name3,
by the time I figured out a sequence of keyboard commands I'm pretty sure I could have multicursored it pretty easily, go to name1, create 2 cursors, select word & copy, start typing : Enum., paste selected word, select word, capitalize, type ,In vim it was something like
qdyi'f,i: Enum.<Esc>pbvlUq
and then repeat macro. I found it very slow to even recall. For some reason the multicursor solution feels faster to me most times. |
After that you can just select it again in visual mode and g Ctrl-A to get the right numbers.
If anything the g Ctrl-A part makes Vim way better than most multicursor editors.