Re: Making :grep easier to use

2006-07-02 Thread thomas scott urban
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



Re: Making :grep easier to use

2006-07-02 Thread Stefan Karlsson
A bit off-topic, but in addition to yank and paste (e.g. c-r) you can
use c-rc-w to insert the word under the cursor.

-- 
Stefan