How to avoid namespace content indentation in vim?

前端 未结 5 505
慢半拍i
慢半拍i 2020-12-24 11:57

How to set vim to not indent namespace content in C++?

namespace < identifier >
{
    < statement_list > // Unwanted indentation
}
5条回答
  •  生来不讨喜
    2020-12-24 12:47

    I use cpp.vim which is inspired by the Google C++ Style Guide. Among other things, that script does what you're asking.

提交回复
热议问题