spf13 / PIV

PHP Integration environment for Vim
250 stars 36 forks source link

Annoying error when editing PHP files on Mac OS 10.7.3 #12

Open nerdo opened 12 years ago

nerdo commented 12 years ago

This happens on Mac OS Lion 10.7.3 when editing a PHP file:

"copyswf.php" 56L, 1411C Error detected while processing /.../PIV/syntax/php.vim: line 63: E108: No such variable: "b:current_syntax"

The fix is simple. Change line 63 to read:

if exists("b:current_syntax") unlet b:current_syntax endif

ghost commented 10 years ago

if this is still a problem, try submitting a pull request.