1.把/usr/share/vim/vimrc或/etc/vim/vimrc 中的“syntax on”取消注释即可。
2.颜色过暗,修改desert.vim文件。/usr/share/vim/vim71/colors/desert.vim中的“hi Folded ctermfg=darkgrey ctermbg=NONE”修改为“hi Folded ctermfg=darkgrey ctermfg=4 ctermbg=7”
3.添加/etc/vim/vimrc中的
if has("gui_running")
colorscheme default
else
colorscheme desert
endif
linux终端高亮显示关键字:http://www.linuxdiyf.com/linux/14213.html
Vi语法高亮设置:http://www.linuxdiyf.com/linux/3228.html
如何在Fedora22发行版的vim下设置语法高亮:http://www.linuxdiyf.com/linux/14269.html
Ubuntu 15.04下为Vim安装YouCompleteMe插件:http://www.linuxdiyf.com/linux/12983.html
在Ubuntu 15.04下安装Vim:http://www.linuxdiyf.com/linux/11782.html