Hacker News new | ask | show | jobs
by bArray 2958 days ago
I would either:

* SHIFT+V to highlight a line, `d` to delete * `:d` to delete the current line

Not experimented with `dd` (or `yy`).

1 comments

SHIFT+V + 'd' is a longer way of doing 'dd'. SHIFT+V + 'y' is a longer way of doing 'yy'.

You can also delete and yank multiple lines by using 'd2d' (delete two lines) or similar. You can also delete lines upwards by using a movement command like 'dk' (or 'd2k' if you want to delete the two lines above).

I quite like the visual confirmation that I'm not about to do something stupid, to me that's worth paying the cost of an extra key.

And I jump between enough systems that I doubt myself with stuff like: is `d1d` or `d0d` or `dd` equal?