On Jun 9, 9:28 am, Cyril snt <[email protected]> wrote:
> I know that several questions already exist about this problem.
> However, when I make a search in several files, I see something like
> that:
>
> "main.sh" [unix] 108L, 2504C
> "default.sh" [unix format] 46 lines, 745 characters
> E486: Pattern not found: TAG
> "ready.sh" [unix format] 37 lines, 733 characters
> E486: Pattern not found: TAG
> "restart.sh" [unix format] 33 lines, 429 characters
> E486: Pattern not found: TAG
> "smart_ipconfig.sh" [unix format] 69 lines, 1342 characters
> E486: Pattern not found: TAG
> "vlan_tag.sh" [unix format] 38 lines, 553 characters
> "write_conf.sh" [unix format] 21 lines, 253 characters
> E486: Pattern not found: TAG
>
What command are you using to search in several files? I do not see
anything like this when using :vimgrep.
> But I want to stop to the first occurence of the pattern. In my
> example, I need to stop in main.sh and if I remake the command in
> vlan_tag.sh.
>
What do you mean "stop to the first occurence"? If you want to simply
jump to the first match after the search is done, then :grep
and :vimgrep do that for you by default. If you want to interrupt the
seach when the first match is found to save time by not searching for
additional hits, I don't think that's possible with :vimgrep, but your
system's grep program (called via :grep of course) may have an option
for that.
I'm absolutely clueless as to what you meant by "if I remake the
command in vlan_tag.sh". Please elaborate, preferably with a concrete
example including Vim commands, and what you want Vim to do (exactly).
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---