Hacker News new | ask | show | jobs
by intractable 4769 days ago

    > underline an arbitrary line of text with '=' characters. In vim that's 11 keypresses across 3 operations
Sounds like a vimgolf challenge to me. Here's my entry:

YpVr=

2 comments

I'm wondering now that the creativity to come up with those things might actually be beneficial to coding.
I'd agree with that, and also - an intense dislike of unnecessary repetition / work is definitely a good thing. I'm not sure using Vim causes that, but it definitely reinforces it.

For those that are interested, I would recommend "Practical Vim", and it includes many examples (including the above one) which really accelerate the learning process:

http://pragprog.com/book/dnvim/practical-vim

There are definitely cheaper alternatives (including free ones), but this book really laid the concepts out very clearly for me.

Well, that Vr= soundly beats my :s/./=/g.