vim c/c++ auto format
Vim
で
clang-format
を保存時にかける
https://github.com/rhysd/vim-clang-format
を使う
Dein
での設定ファイル
code:dein.toml
plugins
repo = 'rhysd/vim-clang-format'
on_ft =
'c', 'cpp', 'proto', 'protobuf'
hook_add = '''
let g:clang_format#detect_style_file=1
let g:clang_format#auto_format=1
'''