Re: missing vim highlight
- From: James Wilkinson <fedora@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 13:17:44 +0000
Michael D. Berger wrote:
I have two FC4 boxes with identical /etc/vimrc .
Using vim, on boxA, if for example, I use the slash
to search for xxx, then all visible xxx are
highlighted. On boxB, there is no highlight
except for the cursor. I note that this is the
case when the boxes are used directly or accessed
via ssh using Putty from a win2k box. In the past,
boxB worked like boxA. Any suggestions?
This is set via the hlsearch option.
:set hlsearch
will turn it on.
:set nohlsearch
will turn it off.
Does this apply for all users? If not, then look in ~/.vim* :
particularly the settings toward the top of ~/.viminfo.
Otherwise you may want to consider this fragment of /etc/vimrc:
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
Hope this helps,
James.
--
E-mail address: james | It was amazing how human traits and affairs could so
@westexe.demon.co.uk | reliably and continuously be guided by a succession of
| big white balls of plasma billions of miles away, most
| of whom have never even heard of humanity.
| -- "The Last Continent", Terry Pratchett
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- RE: missing vim highlight
- From: Michael D. Berger
- RE: missing vim highlight
- References:
- missing vim highlight
- From: Michael D. Berger
- missing vim highlight
- Prev by Date: Re: Mount NTFS partitions
- Next by Date: Re: Procmail subject line filtering for more then word
- Previous by thread: RE: missing vim highlight
- Next by thread: RE: missing vim highlight
- Index(es):
Relevant Pages
|