diff options
Diffstat (limited to 'vim/after/ftplugin/php.vim')
-rw-r--r-- | vim/after/ftplugin/php.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim index 35849ac5..1f40aba7 100644 --- a/vim/after/ftplugin/php.vim +++ b/vim/after/ftplugin/php.vim @@ -3,6 +3,12 @@ if &filetype != 'php' || &compatible || v:version < 700 finish endif +" Use PHP itself for syntax checking +compiler php +let b:undo_ftplugin = b:undo_ftplugin + \ . '|setlocal errorformat<' + \ . '|setlocal makeprg<' + " Set comment formats setlocal comments=s1:/*,m:*,ex:*/,://,:# setlocal formatoptions+=or @@ -15,12 +21,6 @@ if exists('g:no_plugin_maps') || exists('g:no_php_maps') finish endif -" Set mappings -nnoremap <buffer> <LocalLeader>c - \ :<C-U>call compiler#Make('php')<CR> -let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap <buffer> <LocalLeader>c' - " Get rid of the core ftplugin's square-bracket maps on unload let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap <buffer> [[' |