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
Friday, January 25, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment