On Tue, 2005-12-06 at 12:32 -0800, David Frey wrote: > Often times I am looking at a file and there is a certain string sitting > infront of me that I want to grep for. > > Right now, I go into command mode and type > :grep "some_string" *.extension > > Is it possible to yank some_string and then paste it into the command? > It would save me a lot of typing when I am grepping for strings.
On the command line <C-R>" insert the contents of the unnamed yank buffer. :he c_<C-R> > Thanks