From 2e8e5397d20f8c9cfe8b31c93cf60ec8511206b4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 29 Nov 2019 16:12:03 +1300 Subject: Define phpcsff(1df) as Vim 'equalprg' for PHP --- vim/after/ftplugin/php.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim index c7f77ece..0ce099a0 100644 --- a/vim/after/ftplugin/php.vim +++ b/vim/after/ftplugin/php.vim @@ -1,7 +1,8 @@ " Use PHP itself for syntax checking compiler php +setlocal equalprg=phpcsff let b:undo_ftplugin .= '|unlet b:current_compiler' - \ . '|setlocal errorformat< makeprg<' + \ . '|setlocal equalprg< errorformat< makeprg<' " Set comment formats setlocal comments=s1:/*,m:*,ex:*/,://,:# -- cgit v1.2.3