Why not just use external grep in vim if that's what you want?
:[range]!grep -v



On Jan 25, 2013, at 7:20 AM, Catalin Ciurea <[email protected]> wrote:

> On Friday, January 25, 2013 11:21:37 AM UTC+2, skyworld wrote:
>> Hi,
>> 
>> 
>> 
>> does vi has a fuction like "grep -v"? I always found I need to seach
>> 
>> within the file with those lines which exclue specific strings.
>> 
>> Thanks.
>> 
>> 
>> 
>> 
>> 
>> regards
> 
> See the :grep command (:he :grep) in Vim. 
> This command uses the 'grepprg' option to check what program to call. By 
> default is 'grep -n'(See :he 'grepprg')
> 
> You can always do something like:
> set grepprg+=-v
> :grep foo *
> 
> Check :vimgrep command also. It uses Vim regular expressions and an internal 
> search engine. (Slower but if you are familiar with Vim re, it's a good 
> option)
> 
> -- 
> -- 
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
> 
> 
> 

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php



Reply via email to