[ILUG] Vim colour support
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Wed Sep 6 16:54:58 IST 2000
Jeremy Smyth wrote:
>
> I read Ken's wonderful Vim tutorial stuff at the weekend to try to reduce
> the overhead of nedit on my system for stuff like mail and general config
> stuff.
>
> Why does mutt look all colourful in my rxvt but vim is just beige and black
> (my chosen rxvt), with underlines and bolds instead of blues and pinks when
> I do a :syntax on?
>
> (RH 5.2, haven't recompiled vim, man page seems to suggest colour's on by
> default)
This is most of what's in my .vimrc, I grabbed most/all of it from
various websites and docs.
Donncha.
Put the following in .vimrc in your home directory:
------------------------------------------------------------------
" leaving this out makes the colours brighter.
if has("terminfo")
set t_Co=16
set t_Sf=^[[3%p1%dm
set t_Sb=^[[4%p1%dm
set t_vb=
else
set t_Co=16
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
set t_vb=
endif
syntax on
"------ this clears out the old colors before we begin
highlight Constant NONE
highlight Delimiter NONE
highlight Directory NONE
highlight Error NONE
highlight ErrorMsg NONE
highlight Identifier NONE
highlight LineNr NONE
highlight ModeMsg NONE
highlight MoreMsg NONE
highlight Normal NONE
highlight NonText NONE
highlight PreProc NONE
highlight Question NONE
highlight Search NONE
highlight Special NONE
highlight SpecialKey NONE
highlight Statement NONE
highlight StatusLine NONE
highlight Title NONE
highlight Todo NONE
highlight Type NONE
highlight Visual NONE
highlight WarningMsg NONE
"----- these are the new superior colors
highlight Comment term=bold ctermfg=5 ctermbg=0 guifg=#FF005F
guibg=gray
highlight Constant term=underline ctermfg=6 guifg=#FF2f8f
highlight Delimiter term=bold cterm=bold ctermfg=1 gui=bold guifg=Red
highlight Directory term=bold ctermfg=DarkBlue guifg=Blue
highlight Error term=standout cterm=bold ctermbg=1 ctermfg=1
gui=bold guifg=red
highlight ErrorMsg term=standout cterm=bold ctermfg=1 gui=bold
guifg=red
highlight Identifier term=underline ctermfg=3 guifg=yellow3
highlight LineNr term=underline cterm=bold ctermfg=3 guifg=Brown
highlight ModeMsg term=bold cterm=bold ctermfg=3 ctermbg=1
guifg=yellow2 guibg=red
highlight MoreMsg term=bold cterm=bold ctermfg=2 gui=bold
guifg=Green
highlight NonText term=bold ctermfg=2 guifg=green3
highlight Normal ctermfg=white ctermbg=black guifg=grey90
guibg=#000020
highlight PreProc term=underline ctermfg=14 guifg=cyan
highlight Question term=standout cterm=bold ctermfg=2 gui=bold
guifg=Green
highlight Search term=reverse ctermbg=2 guibg=Yellow
highlight Special term=bold ctermfg=5 guifg=SlateBlue
highlight SpecialKey term=bold ctermfg=DarkBlue guifg=Blue
highlight Statement term=bold ctermfg=2 gui=bold guifg=green3
highlight StatusLine term=reverse cterm=bold ctermfg=3 ctermbg=4
guifg=wheat guibg=#2f4f4f
highlight StatusLineNC term=bold ctermfg=3 ctermbg=2 guifg=#00001f
guibg=#5f9f9f
highlight Title term=bold cterm=bold ctermfg=4 gui=bold guifg=Blue
highlight Todo term=bold ctermfg=red ctermbg=yellow guifg=red
guibg=yellow1 gui=bold
highlight Type term=underline cterm=bold ctermfg=3 guifg=yellow3
gui=bold
highlight Visual term=reverse cterm=bold ctermfg=6 ctermbg=5
guifg=yellow guibg=blue
highlight WarningMsg term=standout cterm=bold ctermfg=1 ctermbg=4
guifg=Red
" the following is nice too..
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ruler " Show the line and column numbers of the cursor
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
------------------------------------------------------------------
More information about the ILUG
mailing list