I was speaking with my friend about removing multiple lines while using vim. They said they use d3d to remove 3 lines, whereas I use 3dd
I understand my command is: 3 (repeat 3x) dd (delete the entire line)
And my friend's command is of the form ["x]d{motion} i.e. Delete text that {motion} moves over [into register x].
However, I don't think 3d is a valid motion. Is it? I found this page which is expessing the same confusions how can i use dcountd but it diverges into omaps and expression mappings which I am not interested in - I don’t want to change the behaviour I just want to understand it (and also find out where my friend would have found the command)
I don't understand why this d3d command works in vim.
2d2d = 4dd = d4d
.