Trying to eliminate superfluous <CR>s
Posted: Thu Jul 12, 2007 6:41 pm
Okay, I'm hoping that I just missed this with the search, but it's driving me nuts and my only alternative is to do this by hand.
I'm trying to get rid of some extra carriage returns in some text. Basically, I have some html <ul><li>Items</li>....</ul>, and right now there's a return (and space) between every item, specifically between the previous </li> and the next <li>.
I've tried
and variations that escape the '<' and '>', and every which way I do it, I get an E488: Trailing Characters
Someone wanna beat me with the clue stick?
I'm trying to get rid of some extra carriage returns in some text. Basically, I have some html <ul><li>Items</li>....</ul>, and right now there's a return (and space) between every item, specifically between the previous </li> and the next <li>.
I've tried
Code: Select all
:%s/>^M </></g
:%s/>^M </></m
:%s/>^M </></mgSomeone wanna beat me with the clue stick?