Given:
for (int i = 0; i < 10; i++){
_ <---Cursor position
3w
leads to
for (int i = 0; i < 10; i++){
_ <---Cursor position
and d3w
leads to
fori = 0; i < 10; i++){
_ <---Cursor position
i.e., even though motion 3w
takes cursor upto i
, i
itself is not deleted.
On the other hand, given:
for (int i = 0; i < 10; i++){
_ <---Cursor position
%
leads to
for (int i = 0; i < 10; i++){
_ <---Cursor position
and d%
leads to
for{
_ <---Cursor position
i.e., motion %
takes cursor upto )
and )
itself is deleted.
So, why is there two different effects of d{motion}
? Is there any single general rule of which both of these are consistent special cases?