Jason 写道:
> I have a file that contains a bunch of lines with only the word "foo"
> on it.
>
> I want go through the entire file and remove the lines with the words
> "foo". Not just remove the word, but the entire line.
>
> How is this done in vim?
>
> I tried :%s/foo//g
>
> but it left the li
interestingly, I'm finding gvim might be faster and easier for
manipulating data than a spreadsheet.
On Nov 10, 10:14 am, Christian Brabandt wrote:
> Hi Jason!
>
> On Di, 10 Nov 2009, Jason wrote:
>
> > I want go through the entire file and remove the lines with the words
> > "foo". Not just rem
thank you everyone! That is pretty simple! I also appreciate the grep
example.
On Nov 10, 10:14 am, Christian Brabandt wrote:
> Hi Jason!
>
> On Di, 10 Nov 2009, Jason wrote:
>
> > I want go through the entire file and remove the lines with the words
> > "foo". Not just remove the word, but the
Hi Jason!
On Di, 10 Nov 2009, Jason wrote:
> I want go through the entire file and remove the lines with the words
> "foo". Not just remove the word, but the entire line.
:g/foo/d
regards,
Christian
--
• It's one of those rare "perfect" kernels. So if it doesn't happen to
compile with
On Tue, Nov 10, 2009 at 18:09, Reid Thompson wrote:
>
> On Tue, 2009-11-10 at 08:24 -0800, Jason wrote:
>> I have a file that contains a bunch of lines with only the word "foo"
>> on it.
>>
>> I want go through the entire file and remove the lines with the words
>> "foo". Not just remove the word
> I want go through the entire file and remove the lines with the words
> "foo". Not just remove the word, but the entire line.
>
> How is this done in vim?
>
> I tried :%s/foo//g
>
> but it left the line
You'd want
:g/foo/d
-tim
--~--~-~--~~~---~--~~
Yo
On Tue, 2009-11-10 at 08:24 -0800, Jason wrote:
> I have a file that contains a bunch of lines with only the word "foo"
> on it.
>
> I want go through the entire file and remove the lines with the words
> "foo". Not just remove the word, but the entire line.
>
> How is this done in vim?
>
> I t
I have a file that contains a bunch of lines with only the word "foo"
on it.
I want go through the entire file and remove the lines with the words
"foo". Not just remove the word, but the entire line.
How is this done in vim?
I tried :%s/foo//g
but it left the line
thank you!
--~--~-