vim中的自动缩进被c ++文件中的第一个注释块破坏

时间:2015-11-17 07:37:03

标签: c++ vim indentation

我想在vim中使用通常运行良好的自动缩进。我使用gg=G自动格式化我的来源。

但现在我遇到了以下麻烦:

class X
{
    public:
        void foo()
        {
        }

        /*
        Check
        After this comment block the indentation changes
        Next method goes to previous column
        */
    void bar()
    {
    }
};

如何更改第一个注释阻止缩进返回列后的行为?

0 个答案:

没有答案