|
|
我用如下方法定义一个高亮显示区域在~/.vimrc中
- syntax region xcode matchgroup=xcode start=/\\begin{lstlisting}/ end=/\\end{lstlisting}/
- highlight xcode ctermbg=blue ctermfg=white
复制代码
但启动 vim 后发现无效,必须手工运行一次
:syntax region xcode matchgroup=xcode start=/\\begin{lstlisting}/ end=/\\end{lstlisting}/
才行
请问这是为什么? |
|