#Tip23: Prefer Operators to Visual Commands Where Possible
note: Visual mode may be more intuitive than Vim's Normal mode of operation, but it has a weakness: it doesn't always play well with the dot command.
##vit
select the inner contents of a tag
it
command is a special kind of motion called a text object.
##U
converts the selected characters to uppercase
#Tip:
The Visual mode
U
command has a Normal mode equivalent:gU{motion}
#Discussion
vitU
can be considered as two separate commands:vit
to make a selection andU
to transform the selection.
gUit
can be considered as a single command comprise of a operatorgU
and a motionit
.
##So, we should prefer operator commands over their equivalents when working through a repetitive set of changes.