News for hackers. Stuff that matters.
Re:Everything I Missed in "Vim After 11 Years" by onedognight on Tuesday March 05, 2013 @11:20AM (#5325335)
> But have you ever heard of :g//? I hadn’t.

> :[range]g[lobal]/{pattern}/[cmd] (default 'p')

This is the origin of grep, i.e. g/re/p!

Re:Everything I Missed in "Vim After 11 Years" by arethuza on Tuesday March 05, 2013 @11:31AM (#5325422)
My first reaction to that was "surely grep is older than vi" - but the grep wikipedia page points out that the g/re/p pattern dates all the way back to ed - which vi extended

http://en.wikipedia.org/wiki/Grep

Re:Everything I Missed in "Vim After 11 Years" by ajtaylor on Wednesday March 06, 2013 @06:28AM (#5330588)
Interesting timing: I was reading through Practical Vim last week and came across a sidebar describing the origins of grep. Why do programmers love their acronyms so much?
Re:Everything I Missed in "Vim After 11 Years" by sliverstorm on Tuesday March 05, 2013 @11:45AM (#5325520)
Or my favorite, :g/re/d