Personally, this is exactly the kind of thing I prefer not to make a macro for. There's no need to fill up your .vimrc
with dozens of such one-off solutions, because the solution flows so naturally from the "toolbox" of standard Vim commands, that you can just string it together like second nature.
I'm typing a long word:
the gallicizatio|
(the |
is the position of the cursor). Suddenly I realize that I forgot to capitalize the G
of "Gallicization". So, bam!, I hit ESC
(which is mapped to the caps lock key on my keyboard, so it takes only a flick of the pinky), followed by b~A
, and I continue typing as if nothing happened. That errant g
was capitalized in the time it would take an Emacs user to begin moving his right hand toward the arrow keys, and I've already moved on to the rest of the sentence.
In contrast, with a macro that I haven't used in a while, it would probably take me more time just to remember what key(s) I assigned to that macro. The better solution is to learn the important "core" commands very well, which can be combined on the fly according to simple rules, with millions of possible effects.