Hi skyworld, On Fri, 25 Jan 2013 01:21:37 -0800 (PST) skyworld <[email protected]> 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. > First of all, you can use :v/re/p (Replace p with whatever). Otherwise look at negated regular expressions in http://shlomif-tech.livejournal.com/40557.html . Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Beginners Site for the Vim text editor - http://vim.begin-site.org/ The bad thing about hardware is that it sometimes works and it sometimes doesn’t. The good thing about software is that it’s consistent: it always does not work, and it always does not work in exactly the same way. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- -- 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
