:g/foobar/d

check :help :g
Kevin


On Sep 18, 2006, at 10:42 AM, Fabien Meghazi wrote:

Hi all,

This is a stupid question about a basic feature but I don't have yet
enough knowledge with vim.

How can I delete all lines of a buffer where at least one instance of
"foobar" is found ?

eg the output of:

grep -v file.txt "foobar"

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


Reply via email to