今天突然決定,從 FreeBSD built-in vi 跳槽到 vim 了。設了一下 .vimrc,結果發現,之前讓我厭惡 vim 的原因,「啟動 syntax high lighting 之後,顏色晦暗看不清楚」的問題,只要設一下 set background=dark 即可解決。難怪,vim 以為底色是亮的,所以字的顏色在實際上是暗的底色下,當然顯得晦暗。

我的 ~/.vimrc 如下:

"set	autoindent
" jeffhung.20051006:
" - Since our terminal's background is black, we should set this to dark to
"   use more lighter syntax colorings.
set	background=dark
set	nobackup
set	nowritebackup
set	showcmd
"set	cmdheight=1
"set	compatible
"set	confirm
"set	directory
"set	fileformat
"set	fileformats=unix,dos,mac
"set	ignorecase
set	noincsearch
set	hlsearch
"set	textwidth=0
"set	wrapmargin=0
set	wrap
set	wrapscan
set	ruler
"set	statusline
set	shiftwidth=4
set	tabstop=4
set	showmode
set	novisualbell
set	nonumber
"set	list
"set	swapfile
syntax	on

應該還有很多好玩的選項可以調整,慢慢調囉。