如何改变vi中语法高亮显示的颜色

如题所述

改变vi中语法高亮显示的颜色的方法:
应该在自己的配置文件里覆盖缺省的设置, 这样即使拿到别的
机子上只要拷贝自己的配置文件过去就可以恢复自己的颜色配置。
例如在.vimrc中加入这几行(最好用gvim):
:highlight Comment guifg=seagreen ctermfg=darkmagenta
:highlight Constant guifg=deeppink ctermfg=magenta
:highlight Special guifg=deeppink ctermfg=magenta
:highlight Statement gui=NONE guifg=blue ctermfg=cyan
:highlight PreProc guifg=red ctermfg=red
:highlight Type gui=NONE guifg=blue ctermfg=green
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答