hdima / python-syntax

Python syntax highlighting script for Vim
http://www.vim.org/scripts/script.php?script_id=790
MIT License
364 stars 109 forks source link

g:python_version_2=1 overrides b:python_version_2=0 #1

Closed graywh closed 11 years ago

graywh commented 11 years ago

You should re-think how you select between the two Python syntax versions. The current method allows setting g:python_version_2=0 globally for python3 and lets buffers set b:python_version_2=1 for python2. But it doesn't allow setting g:python_version_2=1 to ensure python2 is the default and setting b:python_version_2=0 to get python3 for a single buffer.

hdima commented 11 years ago

Thanks! Looks like a bug in s:Enabled function. I'll fix it in a few days.

hdima commented 11 years ago

Fixed in e344f212b67b291bcf56ed75d3c7e6de0d5bcdac

graywh commented 11 years ago

Looks great.