Hacker News new | past | comments | ask | show | jobs | submit login

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




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.




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

Search: