Vimrc to help you develop for OpenBMC.
Features:
- Spacing used based on style guide
- Command to run Astyle with appropriate rules (with option for autocmd on save)
- Filtered to openbmc repositories
- Remote must be github.com/openbmc/* or
- Breadcrumb file must exist in pwd or git root:
.openbmc.crumb
Astyle must be installed: sudo apt-get install astyle
If you use vundle:
Plugin 'openbmc/vim-openbmc'
The script will only enable the openbmc settings for the following conditions:
.openbmc.crumbin current directory.openbmc.crumbin root git directorygitproxy.zycloud.tk/openbmcin git remotes
To force openbmc settings on current buffer: :call UseOpenbmcSettings()
To always use openbmc settings on all files, add this to your vimrc before
adding the plugin: let g:openbmc_make_settings_global = 1
g:openbmc_disable_formatonsave: Disables Astyle formatting on c and cpp files on saveg:openbmc_make_settings_global: Applies openbmc settings to all buffers. Not recommended except for testing.
Initial release with spacing, astyle and repository detection.