Vim:在语法区域内启用不同类型的语法高亮?

rom*_*ovs 6 vim syntax-highlighting

我使用latex来使用minted包来排版大量代码.主要是我的Latex源的布局如下所示:

... text ...
\begin{cppcode}
class GenericClass{
    public:
        int publicMember;
    private:
        int privateMember;
}
\end{cppcode}
... text ...
Run Code Online (Sandbox Code Playgroud)

反正有告诉Vim高亮里面的代码\begin{cppcode} \end{cppcode},如果它C++的代码?

ahm*_*dre 5

是的,你可以 - 请参阅这个vim提示了解详情.