tomtom / checksyntax_vim

Check a file's syntax when saving a file (php, ruby, tex ...) with vim
http://www.vim.org/scripts/script.php?script_id=1431
GNU General Public License v3.0
94 stars 9 forks source link

Error: Undefined variable: b:checksyntax #3

Closed blueyed closed 13 years ago

blueyed commented 13 years ago

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

tomtom commented 13 years ago

Thanks. That should have been g:checksyntax.