phpstylist.vim
プロジェクト毎に規約が変わったりするので、id:oppara:20111006 をプラグイン化
(phpStylistのラッパー)
GitHub - oppara/phpstylist.vim: wrapper for phpStylist
設定方法 .vimrc
" phpStylist.php へのパス let g:phpstylist_cmd_path = '/path/to/phpStylist.php' " phpStylist のオプション " php /path/to/phpStylist.php --help let g:phpstylist_cmd_opts = [ \ '--indent_size 4 ', \ '--line_before_comment_multi ', \ '--keep_redundant_lines ', \ '--space_after_comma ', \ '--space_around_assignment ', \ '--align_var_assignment ', \ '--space_around_comparison ', \ '--space_around_arithmetic ', \ '--space_around_logical ', \ '--space_around_colon_question ', \ '--line_before_function ', \ '--space_after_if ', \ '--add_missing_braces ', \ '--space_inside_for ', \ '--indent_case ', \ '--line_after_break ', \ '--space_around_double_arrow ', \ '--space_around_concat ', \ '--vertical_array ', \ '--align_array_assignment' \]