2008年1月23日 星期三

Vim syntax highlight

Make your linux vim editor more convinent and confortable.
~# vi /etc/vim/vimrc

and add the following in vimrc

set cindent
set smartindent
set hls
set nocompatible
set sw=3
set showmatch
set background=light
colorscheme desert
syntax on
set hlsearch
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
highlight Comment ctermfg=blue

0 意見: