tomtom / checksyntax_vim

Check a file's syntax when saving a file (php, ruby, tex ...) with vim

Home Page:http://www.vim.org/scripts/script.php?script_id=1431

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Undefined variable: b:checksyntax

blueyed opened this issue · comments

After having installed eclim I am getting the following error via the BufRead auto command:
E121: Undefined variable: b:checksyntax

This happens because b:checksyntax does not exists at all, but the following autocommand accesses it:
autocmd CheckSyntax BufReadPost *.php if exists(':EclimValidate') && !empty(eclim#project#util#GetCurrentProjectName()) | let b:checksyntax.php.auto = 0 | endif

Thanks. That should have been g:checksyntax.