Return to Snippet

Revision: 2739
at April 11, 2007 04:48 by wolfie


Initial Code
set background=dark
set tabstop=4
syntax on
" Determine terminal type
let term=$TERM

if term != "linux"
colorscheme evening
" Set colors for none linux (console) term
"hi Comment ctermfg=DarkBlue guifg=Blue
"hi Statement ctermfg=DarkRed guifg=Brown
"hi Identifier ctermfg=Blue guifg=DarkCyan
"hi PreProc ctermfg=Magenta guifg=Purple
"hi Constant ctermfg=Black guifg=Magenta
"hi Special ctermfg=DarkMagenta guifg=SlateBlue
"hi Type ctermfg=DarkCyan guifg=SeaGreen
"hi Ignore ctermfg=Gray guifg=bg
hi Comment ctermfg=DarkGreen guifg=Green
endif

Initial URL


Initial Description
Paste the contents of this into the file ~/.vimrc and you'll be able to redefine colours as you see fit. This also sets the background to be a default colourscheme of 'dark', with a tabstop of 4. Note that " is used for comments.

Initial Title
Redefining colours in vi

Initial Tags


Initial Language
Bash