rhysd / vim-clang-format

Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, and so on.
http://clang.llvm.org/docs/ClangFormat.html
1.08k stars 123 forks source link

:ClangFormat kills vi #114

Open mcandre opened 3 years ago

mcandre commented 3 years ago

When I run :ClangFormat, it immediately suspends the Vim session. This lands me back onto the shell.

Example file:

https://github.com/mcandre/swiper/blob/master/include/swiper/swiper.hpp

Recovered using the swap file and tried again, same result every time. My code never formats.

Uninstalling the plugin for now.

clang-format 10, vim-plug, Vim 8.1, Ubuntu 20.04 Focal Fossa.

Kypert commented 3 years ago

I was unable to reproduce this, file was formatted just fine.

Were you able to test clang-format swiper.hpp in the shell, to see that clang-format itself was behaving?

Did you have any specific style options defined in g:clang_format#style_optionsg:clang_format#style_options? Or which .clang-format file was used?