On Tue, Dec 15, 2009 at 9:05 PM, Lenin Lee wrote:
> Hi there,
> I used grep to search in files, but vim always opens the first matching
> file.
> I wonder how to control this behavior, is there a way to stop opening a
> match automatically

Use the ! flag.

    :grep! foo *.c

> or open it in a new split window ?

Split the window before doing the search:

    :split | grep foo *.c

~Matt

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

Reply via email to