3 ms·
Use <C-v> for column editing. Your example is not a candidate for a macro, a simple substitution is enough: V2j to visually select the lines :s/_/_Cla
by johncoltrane 14y ago
Use <C-v> for column editing.
Your example is not a candidate for a macro, a simple substitution is enough:
V2j to visually select the lines
:s/_/_Class_<cr> a range corresponding to the visual selection '<,'> is inserted automatically before the s
If you are comfortable with ranges, the operation can be done in one go:
:.,+2s/_/_Class_<cr>
Also there are already a few plugin authors exploring the multiple cursors idea, however gimmicky it is.