5 ms·
If you train yourself, you can get good at guessing the line numbers, plus is makes you feel godly when you correctly dd the 17 lines you want.
by secoif 15y ago
If you train yourself, you can get good at guessing the line numbers, plus is makes you feel godly when you correctly dd the 17 lines you want.
- tomn 15y agoThat, or subtracting ;) I swear the entire UI of Vim is made to make the user feel like a ninja.
- literalusername 15y agoI'm fairly sure the GP meant "dd", not "add".
- secoif 15y agoCorrect.
- tomn 15y agoAh, I meant subtracting the current line number from the target line number to get the number of lines to jump, instead of just guessing.
- literalusername 15y agoGot it. I think we ironically tend to underestimate our ability to estimate. I normally :set nonumber, and like secoif, I've impressed myself on numerous occasions with how well I'm able to estimate line counts and character counts. Give it a try -- you're likely to impress yourself too.
- alinajaf 15y agoI need to do more of this. At the moment I'm relying on visual mode way too much (i.e. select what I like, then delete it).