On Fri, Feb 23, 2007 at 04:26:50PM +0300, Pavel Shevaev wrote:
> >:vimgrep pattern directory/**/*.h
> 
> Just an aside question - is there anything alike for find & replace in
> files? Something like :%s/../../g <glob> could be very helpful...
> Especially it would be great to see replaced stuff in quickfix window.
Not as far is I know
You can use :n path/**/* to open all files and use commands like bufdo
to do the substitution.

To check results I'd recommend cp -r dir /tmp/dir and diff -r dir
/tmp/dir .. which should give you the results.

Also this piece of code was pasted somewhere on the list month ago:

 " by Piet Delport a few years ago.
 command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | 
diffthis

Then you can diff the changed files before :saveall ;)

HTH Marc

Reply via email to