setting up cs fixer in vim is pretty straightforward:
install the phar locally
git clone https://github.com/stephpy/vim-php-cs-fixer.git ~/.vim/pack/plugins/start/vim-php-cs-fixer curl -L https://cs.symfony.com/download/php-cs-fixer-v2.phar -o ~/.vim/php-cs-fixer.phar chmod 755 ~/.vim/php-cs-fixer.phar
then in your .vimrc
.vimrc
"------------------------------- " php-cs-fixer config " <F4> fix let g:php_cs_fixer_path = "~/.vim/php-cs-fixer.phar" let g:php_cs_fixer_rules = "@PSR2" let g:php_cs_fixer_php_path = "/usr/bin/php" map <F4> :call PhpCsFixerFixFile()<CR>
obviously, you can change the hotkey or the ruleset.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
setting up cs fixer in vim is pretty straightforward:
install the phar locally
then in your
.vimrc
obviously, you can change the hotkey or the ruleset.