[CLUE-Tech] vi search/replace question

Angelo Bertolli angelo at freeshell.org
Fri Apr 23 09:17:39 MDT 2004


> For example, I want to remove all the lines the start with a particular
> character, perhaps #, (so the regex to find the lines would be ^# ...
>

I'm really sorry about this, I'm an idiot.  Before anyone tries any of the
other things I said before, here is the guaranteed true solution:

:0,%s/^#.*//g


Sorry!

Angelo



More information about the clue-tech mailing list