[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to %g/notice/d
From: |
kgold |
Subject: |
Re: how to %g/notice/d |
Date: |
16 Jul 2004 13:09:05 GMT |
"Chang PilHun" <cph@nhncorp.com> writes:
> I want to delete all lines that includes 'notice' string.
> in vim, I can do that by :%g/notice/d
> How to in emacs?
Besides the "right" way to do it, I use keyboard macros all the time
for tasks like this, where it might take longer to find the right
command than to do the edit.
The keyboard macro would be:
- search for "notice"
- go to the beginning of the line
- kill the line
Issue a command to execute the macro 1000 times and you're done.
If you don't know about keyboard macros, you're missing a great emacs
feature.