vim-clang-format
vim-clang-format copied to clipboard
Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, and so on.
This new feature fixes a behavior difference between vim-clang-format and clang-format. If the 'to be formatted' buffer ends with one or several empty lines, vim-clang-format keeps one final empty line....
Thank you for the plugin! I am running the plugin also on the system with incompatible .clang-format file with the version of clang-format. The behavior is that when I run...
Sometimes I don't want to fomat the inserted codes, I wonder if there is any command like ClangFormatAutoToggle to control it ? But I don't find it in doc.
Most styles use ContinuationIndentWidth = 2*IndentWidth (google, llvm, etc). With existing arguments, shiftwidth=4 gives ```cpp constexpr operator To() const noexcept(noexcept(static_cast≺To≻(ːdeclval≺From≻()))) ⇉ return static_cast≺To≻(val) ``` instead of expected ```cpp constexpr operator...
Update only the lines which need updating. Prevents unnecessary computations for plugins which listen to buffer change events given the common case is typing already formatted code.
Hi, I get this error when i run ClangFormat: Error detected while processing function clang_format#replace[6]..139_error_message:
this is .vimrc file let g:clang_format#command = 'clang-format' autocmd FileType c,cpp ClangFormatAutoEnable I edit and format the .cc file first,Then edit the proto file and send an error when saving...
I read the http://clang.llvm.org/docs/ClangFormatStyleOptions.html and do lots of test , but I don't know how to set the following style: don't care about the '\\', it is correct on my...
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...
Please show a specific installation command using common community tools. For example, show the vim-plugin snippet to write in vimrc. This helps newbies to install vim-clang-format more easily.