macのVimにClang Formatプラグインをインストールしたメモ。非常に簡単です。
Clang Formatをインストール
Homebrewでインストールします。
$ brew tap tcr/tcr
$ brew install clang-format
一応、インストールされているかの確認。
$ clang-format -help
私はdeinでプラグインを管理しているので、.vimrcに以下を追記するだけ。
call dein#add('rhysd/vim-clang-format')