Let\'s say that I\'m in visual mode, and I type \"aw\" to extend the visual area to include the next word. I\'d like to then include the next couple of words. Is there a singl
NO PLUGINS use ;.
Here's a detailed example:
int function1(){
some code here;
...
...
return 0;
}
int function2(){
some code here;
...
...
return 0;
}
Now let's say you want to rewrite the part inside {}
for function1 and function2.
{}
ESC
or ctrl+c
), press di}
(for "delete" "inner" "{"){}
of function2;.
For visual mode, I think macros is your only option (maybe overkill for aw
)
q
+ q
(that last q
can be any letter. It's where you macro will be saved)To replay these actions (even in visual mode):
@q
(or whatever letter you saved it to)To replay the actions 99 times:
99@q
(or whatever letter you saved it to)