Hacker News new | ask | show | jobs
by brokenawipicute 2458 days ago
How long did this take you? I don't know vim wizardry and I was curious. Took me 4 mins to do the same thing in js console:

1. copy the text 2. split by \n 3. sort by length 4. you got sorted list

1 comments

I know all of this off the top of my head, so less than a minute all up. Well, except the line(".") bit; that didn’t occur to me until I’d done it manually with the help of v_g_CTRL-A, and I had forgotten about the "." argument until I looked up its docs—haven’t used it in a while.