李杰的博客

VI如何设置字符颜色

时间:Mar.31, 2006 | 分类:未分类

vim 6.1附带了341种编程语言的语法文件!这些语法定义文件都在syntax/下。你可以随便让它显示哪一种语言的语法彩色加亮!

  修改$HOME中的.vimrc,把color值设为true
  把环境变量VIMRUNTIME设成vim的路径名
  例:/usr/share/vim
  在vi中键入

  :syntax on 回车
  :so $VIMRUNTIME/syntax/php.vim 回车

当然了,要给C++程序加亮,就调用cpp.vim啦!

呵呵

我要发牢骚

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!