Is it possible to format C++ code with VIM?

后端 未结 9 1628
野的像风
野的像风 2020-12-07 14:58

I am rather new to VIM. I got some source code and this is a mess. At a first sight I would like at least to get a clear and organised view of the code, so I like to get it

9条回答
  •  再見小時候
    2020-12-07 15:35

    There is also a Vim plugin relying on clang-format: vim-clang-format

    Then you can simply map the formatting command to whatever suits you.

提交回复
热议问题