|
|
One of the biggest annoyances of vim is the color scheme. Come to think of it,
ls in cygwin gets into some reading difficulty where color is involved. But I
found this beauty recently and thought I'd share. It can go in your vimrc as
individual lines or it can be punched in at the : command prompt:
set hls
:noremap <F1> :set hls!<CR> :echo "hilight search (hls) =" &hls<CR>
set noic
:noremap <F2> :set ic!<CR> :echo "ignore case (ic) =" &ic<CR>
(The last line isn't a color issue, but it's handy and related so I'm including
it: it swaps between case sensitive and case insensitive searches.)
Make sure you enter the lines as they appear here. <F1> and <CR> are vim's way
of letting you let in know that you want it to interpret those keys. Clear as
mud? Good. I try not to be too easy to follow.
The advantage is that when you search for text and are blinded by the obnoxious
color scheme vim uses to hilight the hits, you hit F2 to turn off the colors,
then turn F2 again to turn them back on.
Minor annoyance: if you forget to turn them back on, you'll have to do so when
when you do your next search. I'll work on that.
-rbarry
|