[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] writes:
I don't think I posted my commented note about 99 but it says if you
use 99 it's supposed to cause the default (font) or foreground color
to happen I'm not real sure of the notes vintage, but it appears to
be from 2003
# [HP 07/08/03 21:18 Using 99 means it uses default font color]
The whole syntax arrangement goes back even farther when I swiped it
lock stock and barrell from a fellow named Donavon:
[HP From Donavans .vimrc: May 20 2000]
But now I see how it works I can insert what I like. I think that 99
may have been an attempt to be more portable.
Thanks again.
This appears to be a nice smooth and easy look on a black xterm:
hi StatusLine cterm=NONE ctermbg=8 ctermfg=7
Dark grey background lightgrey foreground.
This sucks... I just noticed if I run `: so ~/.vimrc' that nifty
smooth thing turns black and invisible...
Am I wrong in thinking calling `:so ~/.vimrc' should not change anything?
Maybe it's time you put all your ":hi" commands into a separate colour
scheme (a script in ~/.vim/colors). I am attaching, as a simple
easy-to-understand example, the "almost-default" colorscheme I use in
the GUI.
Once you have written your own colorscheme, let's say
~/.vim/colors/reader.vim, invoke it by ":colorscheme reader".
Best regards,
Tony.
" Vim color file
" Maintainer: Tony Mechelynck <[EMAIL PROTECTED]>
" Last Change: 2006 Jun 21
" This is almost the default color scheme. It doesn't define the Normal
" highlighting, it uses whatever the colors used to be.
" Only the few highlight groups named below are defined; the rest (most of
" them) are left at their compiled-in default settings.
" Set 'background' back to the default. The value can't always be estimated
" and is then guessed.
hi clear Normal
set bg&
" Remove all existing highlighting and set the defaults.
hi clear
" Load the syntax highlighting defaults, if it's enabled.
if exists("syntax_on")
syntax reset
endif
" Set our own highlighting settings
hi Error guibg=red
guifg=black
hi clear ErrorMsg
hi link ErrorMsg Error
hi StatusLine gui=NONE,bold guibg=red
guifg=white
hi StatusLineNC gui=reverse,bold
hi TabLine gui=NONE guibg=#DDDDDD
guifg=black
hi TabLineFill gui=NONE guibg=#AAAAAA
guifg=red
hi User1 ctermfg=magenta guibg=white
guifg=magenta
hi User2 ctermfg=darkmagenta guibg=#DDDDDD
guifg=magenta
" remember the current colorscheme name
let colors_name = "almost-default"
" vim: sw=2