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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -