On Wed, Jun 10, 2009 at 3:17 AM, Cyril SANTUNE wrote:
>
> Thanks, sorry for my poor english. I try to explain with an example :
>
> I have 4 opened files in vim : file1.txt file2.txt file3.txt file4.txt
> I want to search the pattern 'abcd'. The 'abcd' string is present in
> file2.txt and file4.txt.
>
> If I make : ":bufdo /abcd". I will obtain something like that :
>
> "file1.txt"
> Pattern not found: abcd
> "file2.txt"
> "file3.txt"
> Pattern not found: abcd
> "file4.txt"
>
> At the end of the command, I am in the file4.txt. My problem is that I
> would be in file2.txt at the end of the 'bufdo' command.
>
>
> I try vimgrep, I obtain a good result with : ":1vimgrep <pattern>
> <file>". However, I don't want search in <file> but rather only in
> opened file in vim. Is it possible ?

That's what this plugin gives you:

http://vim.sourceforge.net/scripts/script.php?script_id=2545

~Matt

PS:  In the future, it's list policy to bottom post on this mailing
list - quote the smallest portion of the text that you're replying to
that adequately provides context for your response, and put your
response below (not above) that.

> On Tue, Jun 9, 2009 at 6:51 PM, Ben Fritz <[email protected]> wrote:
>>
>> On Jun 9, 9:28 am, Cyril snt <[email protected]> wrote:

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

Reply via email to