syntax on
if &term =~ "xterm"
if has("terminfo")
set t_Co=8
set t_Sf=<Esc>[3%p1%dm
set t_Sb=<Esc>[4%p1%dm
else
set t_Sf=<Esc>[3%dm
set t_Sb=<Esc>[4%dm
endif
endif
.vimrc
本文轉自 holy2009 51CTO部落格,原文連結:http://blog.51cto.com/holy2010/326744