Operator+motion=action
In vim, d{motion}
commands can delete a single character dl
, or you can delete an entire word daw
, the entire paragraph dap
. The same can be used c
to change words caw
or exercise with commands cap
. y
commands are similar to those used.
g~
, gu
the gU
command is composed of two grammars. If we want to make the whole word uppercase, we can gUaw
make the whole paragraph uppercase gUap
.
Another syntax for VIM is to execute a command on the current line when a OPERAOR command repeats itself. For example, delete the current row, dd
yy
Copy the current line, the gu
command is a special example, we can use gUgU
or make the gUU
current line into uppercase.
The comment command is, comment the current line \\{motion}
, comment \\ap
from the \\G
current line to the end of the file, and \\\
comment the current line.
[Practical.vim (2012.9)]. DREW.NEIL.TIP12 Study Summary