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_Co=8 set t_Sf=<Esc>[3%dm set t_Sb=<Esc>[4%dm endif endif .vimrc 本文转自 holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/326744