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. -- Brad Beyenhof http://augmentedfourth.com The history of popular music is littered with great partnerships. Rodgers had his Hammerstein, Lennon had his McCartney, and Lloyd Webber had... his photocopier... ~Humphrey Lyttleton -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
