David Turetsky wrote: >>:%s/^[a-z]:[0-9]/#/g > Try something like: > %g!/^#/s/^/#/ > Steve Lamb replied: > Personally I'd do it this way: > %s/\(.*\)/#\1/g David responded: Steve's approach would put a # in the front of ALL lines whether or not they initially contain an existing # to begin with If that is what you wanted to do, you could: %s/^/#/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- vi globally append question Sean
- Re: vi globally append question Rick Pasotto
- Re: vi globally append question Derrick 'dman' Hudson
- RE: vi globally append question David Turetsky
- Re: vi globally append question Steve Lamb
- Re: vi globally append question David Turetsky
- Re: vi globally append question Steve Lamb
- Re: vi globally append question Ken Irving
- Re: vi globally append question Matthias Czapla
- Re: vi globally append question Rick Pasotto
- Re: vi globally append question Matthias Czapla
- Re: vi globally append question Robert Waldner
- Re: vi globally append question Patrick Albuquerque
- Re: vi globally append question Rick Pasotto
- Re: vi globally append question Patrick Albuquerque