Hi Israel,

2008/10/26 Israel <[EMAIL PROTECTED]>:
>
> I switched from TextWrangler to MacVim and so it's going ok, but I
> miss the ability to search multiple files simultaneously, is there any
> way to do this in MacVim?
>
> TextWrangel shows the results in a two sections window, with the file
> names in one and the contents of the selected file in the other, there
> is the option to open the file in a new window also.

I'm sure you'll get more answers if you post this question on the
vim_use mailing list, but I can at least tell you how I search through
multiple files (although I'm no expert at these things).

I use the :vimgrep command, so if I want to search through all c-files
for "hello world" I do something like:

:vimgrep /hello world/ *.c

That will set the quickfix list and you can step through all matches
with :cn and :cp.  You can see all the matches in a new window by
typing :cw and then you can also hit enter on a line to open the file
where that match was.  Read all about it by typing

:h quickfix

Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to