Googling Stack Overflow (GSO): Automatic programming in Vim

Stack Overflow is so tremendously useful for solving any issue in any language that it only makes sense to integrate it into the editor.

That’s what GSO is, for vim.

GitHub

It works with the following vim command:

:GSO [(-l | --language) <language>] [-n | --no-text] [<search>...]

It then Googles the query you type, automatically appends the language of your current file (if you didn’t explicitly type it), then dumps the first SO answer to your editor.

The result is a feature which is quite useful for the cases where you keep forgetting one specific syntax or solution to a bug.

In the future, I would like to automatically pipe /dev/stderr into it, so the solution to any build error will get dumped inside of vim.

Leave a comment