5 ms·
I would either: * SHIFT+V to highlight a line, `d` to delete * `:d` to delete the current line Not experimented with `dd` (or `yy`).
by bArray 8y 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`).
- cyphar 8y agoSHIFT+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).
- bArray 8y agoI 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?