News for hackers. Stuff that matters.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by pletnes on Wednesday May 06, 2020 @02:06PM (#23094316)
If you use relative line numbers, 5dd makes total sense.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by tgb on Wednesday May 06, 2020 @02:14PM (#23094428)
I tried this for a while but it never clicked for me. I prefer using semantically-meaningful groupings like paragraphs or parentheses, it just seems nicer. And relative line numbers wouldn't make, say, 5dw any easier to count.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by lenkite on Saturday May 09, 2020 @02:28AM (#23122748)
You can use: df<char> to delete forward (including char), dt<char> to delete forward until char. (excluding char) d/<search><Enter> to delete until search pattern is found

In case you wish to type immediately after deleting, replace 'd' with 'c' in the above.