Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Search ":wq" (github.com/search)
14 points by jhardy54 on Feb 25, 2014 | hide | past | favorite | 9 comments


The language statistics for this are interesting. 5.3million C files with everything else coming in way behind in the tens of thousands.


It's also interesting that if you limit the search to the C language, it looks like the search ignores the ":" after the first dozen or so hits and the remaining entries are matches for "wq" in variable names, etc. e.g.:

   extern struct workqueue_struct *kcrypto_wq;
Edit: Actually, this seems to be true of most languages...


Context? What is :wq - I'm assuming some sort of Vim shortcut?


"write file and quit"


Thanks!


It's the vim command to write & quit.


This is hilarious. You should probably also search files named ":w". I have a lot of those.


I constantly find myself questioning the sanity of doing something like:

> inoremap :wq


try "sync"




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

Search: