command - Why does "d1j" delete two lines in vim? -
the d{motion}
command seems work inconsistently:
d1j " deletes 2 lines bottom d1l " deletes 1 character right
is expected behaviour?
when start motion , in operator pending mode, motion either inclusive or exclusive, , either characterwise or linewise (linewise motions inclusive).
j
linewise inclusive motion. want try dvj
or dgj
(the latter 1 works screen lines).
see :help operator
. can force motions linewise, characterwise or blockwise v, v or ctrl-v respectively.
Comments
Post a Comment