LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 885|回复: 0

请教:vim region highlight?

[复制链接]
发表于 2006-2-17 15:16:50 | 显示全部楼层 |阅读模式
我用如下方法定义一个高亮显示区域在~/.vimrc中

  1. syntax region xcode matchgroup=xcode start=/\\begin{lstlisting}/ end=/\\end{lstlisting}/
  2. highlight xcode ctermbg=blue ctermfg=white
复制代码

但启动 vim 后发现无效,必须手工运行一次
:syntax region xcode matchgroup=xcode start=/\\begin{lstlisting}/ end=/\\end{lstlisting}/
才行

请问这是为什么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表