This plugin provides functions and commands to ease the use of uncrustify within Vim.
The plugin can be found on GitHub and VIM online.
Run uncrustify to format the current buffer.
Run uncrustify to format the current buffer. This function can be used to add an autocommand that formats the code automatically on write.
autocmd BufWritePre <buffer> if (&filetype == 'cpp') | call Uncrustify() | endif
Command that will be run.
- Default:
"uncrustify" ]
If the buffer local variable b:uncrustify_command
is set this value will be
used instead of the global value.
Configuration that will be used to run uncrustify.
- Default:
"~/.uncrustify.cfg" ]
If the buffer local variable b:uncrustify_config_file
is set this value will
be used instead of the global value.
Dictionary that contains the mapping from Vim buffer file type to uncrustify language.
- Default:
{ "c": "c", "cpp": "cpp", "objc": "oc", "objcpp": "oc+", "cs": "cs", "java": "java" }
If the buffer local variable b:uncrustify_language_mapping
is set this value
will be used instead of the global value.
Debug level for this script.
- Default:
0
To contact the author (Markus Braun), please send an email to [email protected]
If you think this plugin could be improved, fork on GitHub and send a pull request or just tell me your ideas.
- Alexander Shukaev for his post on stack overflow about uncrustify and Vim
v0.0.1 : 2018-05-15
- initial release.