[NTLUG:Discuss] Vi

David D. Scribner dscribner at bigfoot.com
Thu Nov 7 12:44:37 CST 2002


On Tue, 2002-11-05 at 09:21, Patrick Parks wrote:
> I have been building web pages in Vi lately, trying to learn it and have
> come across a problem (more of an irritation than a problem). As I was
> editing the html, I did something in vi to cause it to highlight all of
> my <tr> tags red. I know this is not very much information, so if you
> need more, tell me what you need. It has not affected the code, it is
> just irritating to look at when coding, it makes me think something is
> wrong, when it is not. Thanks

As MadHat suggested, you did a search at one point (typing / while in
command mode) followed by <tr>. The suggestion of mapping the F5 key to
toggle the highlight search is a good one, but if you don't want to go
that route, just do another search on a known-to-not-exist string.

For example, if you know that the combination of characters "shux" does
not exist in your document, in command mode do a search on it (/shux).
It won't be found and all previous highlighting will be gone.

-- 
David D. Scribner
dscribner at bigfoot.com     http://www.bigfoot.com/~dscribner/
GnuPG/PGP: 3172 7408 58CA D9C2 F697  950F 9DDC 7AC7 91EC 5F06
 
Ethernet(n): something used to catch the etherbunny.
 




More information about the Discuss mailing list