stone wrote:
> 2009/9/27 <[email protected]>
>
> >> meino.cramer:
> >>
> >> thank you very much.
> >>
> >> It can work well.
> >>
> >> How about my second question?
> >>
This is why you should only post ONE question at a time in a single
thread.
>
> >stone:
>
> >Load every related file into a buffer.
> >:bufdo %s/<old symbol>/<new symbol/g
>
>
> But this method need load all file to buffer.
> In my project, there are hundreds of files.
>
You can use :vimgrep or :grep or :cscope find s to find every
occurrence of the symbol in you project. Then, visit each file in the
list of results and do the :bufdo command suggested.
See:
:help quickfix
:help :vimgrep
:help cscope
http://vim.wikia.com/wiki/Find_in_files_within_Vim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---