Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vim editor on Red Hat 8.0

Status
Not open for further replies.

boombautz

MIS
Oct 31, 2002
4
CA
Hey Folks,

Can anyone tell me how to turn off the highlighting of the last character of every line when using vi/vim? I've looked at the man page and found all kinds of stuff on syntax highlighting but none of it tells you how to turn this off. I've tried :syntax off, :highlight clear etc etc etc, and nothing works.

Thanks much in advance for any replies.

Kevin
 
it is not a synntax highlight problem, :syntax off should work.

could be 2 problems:
#1
someone, maybe you, have made a searh and in this case matched pattern is highlighted.
jus serach something ele, which is not in your file,
something like /dddddddddddd

#2
you have a text file in MS/DOS format (with \r).
you will have a ^M at the end of every line.
All you have to do is to delete \r.
:%s/^M/g
which if fact is:
:%s/CTRL+v[ENTER]/g


__
___
 
Thank you very much Predamarcel, suggestion number 1 was right.

I really didn't even think about it because I thought the highlighted search pattern would only be for that instance of vim. My bad. ;-)

Thanks again.

Kevin

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top