begin quoting Brad Beyenhof as of Fri, Jan 25, 2008 at 02:28:37PM -0800: > On Jan 25, 2008 1:58 PM, Ralph Shumaker <[EMAIL PROTECTED]> wrote: > > I know the vim command :%s///gc to replace throughout the file, with > > verification, including multiple occurrences on individual lines. But > > I'm not quite sure how to go about what I want. > > > > I want to issue the command such that any lines that are not ^$$ > > (BOL$EOL) or ^%$ will get <br> appended *unless* the line already ends > > <br>$ (<br>EOL). > > You could always just replace each EOL with <br>EOL, then replace each > <br><br> with a single <br> and each [delimiter]<br> with just > [delimiter]. > > Sure, it's more steps, but it would work.
It's the one I would prefer. -- Get the job done Then you have won. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
