vim - What can follow "d" in normal mode? -
in answer this question, learned empty lines around cursor can deleted using key sequence dip in normal mode. astonished, looked vim help, vim says d may followed movement, i isn't (it brings insert mode normally).
- what dip doing? i , p stand in context?
- where can find documented? other "magic" characters can follow d?
you use vim you'd think, speak or write normal spoken language.
you have verbs d[elete]
, y[ank]
, p[ut]
, c[hange]
, v[isually select]
, on.
you have sorts of objects w[ord]
, p[aragraph]
, t[ag]
, on.
you have modifiers i[nner]
, a[round]
, t[ill]
or /foo
, many others , ability use {count}
quantifier.
dip
means "delete inner paragraph". vat
means "[visually ]select current html tag", c2t;
means "change here second next semicolon"…
like real language, learning full sentences won't far. basic vocabulary not large idea forget dip
, learn d
, i
, p
instead. learning dip
, cib
, gu/foo
, millions of friends single commands takes more time , brain cells learning individual commands , simple grammar make work.
once know dcyv
(verbs), ia
(modifiers) , p
(object), learning new object )
gives instantly di)
, da)
, ci)
, ca)
, vi)
, va)
, on. each time learn new object or modifier (most single character), your vocabulary increases dramatically. isn't freaking cool?
also, :help d
, :help ip
have given answer.
as say, ":help motion.txt
blow mind".
Comments
Post a Comment