Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


That, or subtracting ;)

I swear the entire UI of Vim is made to make the user feel like a ninja.


I'm fairly sure the GP meant "dd", not "add".


Ah, I meant subtracting the current line number from the target line number to get the number of lines to jump, instead of just guessing.


Got 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.


Correct.


I 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: