> Would this be possible with vim 6?

Not using :vimgrep, but you can use :grep in much the same way.

    :grep -R '^R/' .

This is even better, in this way the matching words are highlighted too.

If you change the :w to :up, the buffer will be saved only if it has been 
modified.

That's good to know, thanks for this as well. So after all the winning
combination is:

:up<cr>:grep -r --exclude=tags '<C-R>/' %:p:h/<cr><cr><cr>:cn<cr>

Thanks all!

Reply via email to