Any way to get Vim to format my comments to comply with Google cpplint?
Top section is not compliant, to comply 5 changes are required.
- keep this comment at the same level
- Add a space after
//
- add minimum of two spaces between code and comment
- align comments
- add space after
//
(Note I am also asking this question here, it may be possible to do with Tabular https://github.com/godlygeek/tabular/issues/44)
EDIT: As per recommendation below, this works:
Plugin => https://github.com/rhysd/vim-clang-format
.nvimrc or .vimrc Configuration:
let g:clang_format#code_style='google'
let g:clang_format#style_options = {
\ "AccessModifierOffset" : -3,
\ "Standard" : "C++03"}
/
, right?