vim-clang-format
vim-clang-format copied to clipboard
Can vim-clang-format correctly indent as I write code?
I've already used it to format existing code and it works beautifully. Can it also correctly indent as I write code(c++ for example)? or should I still set the correct indent via other plugins or vim options? Thank you.
Maybe the closest you can come is to use g:clang_format#auto_format_on_insert_leave, would that satisfy your use-case? I think I know what you are after, but I think you need to set indent and snippets to conform to the style is still a good idea in order to hit somewhat close to home as you enter code in insert mode :)
Maybe the closest you can come is to use
g:clang_format#auto_format_on_insert_leave, would that satisfy your use-case? I think I know what you are after, but I think you need to set indent and snippets to conform to the style is still a good idea in order to hit somewhat close to home as you enter code in insert mode :)
thank you indeed this is a way to simulate what I need.