Open sloria opened 8 years ago
Better yet, use https://github.com/vim-python/python-syntax
Thanks for the tip, @renstrom . It appears that vim-python/python-syntax is the most actively-maintained fork ATM. I've updated this PR to use that instead.
@mitsuhiko Please let me know if there are any blockers to getting this merged.
Doesn't that defeat the purpose of the repo here? The entire point is that you don't have to set the version of the language.
I don't think it defeats the purpose. The syntax file from vim-python/python-syntax is the best I've seen, and even though you can explicitly specify a Python version, it works out-of-the-box for both versions (I'm currently using it in both Py2 and Py3 codebases).
The value of this repo is that it combines syntax highlighting and pep8 indentation, and consequently is easily integrated by vim-polyglot. If this is merged, I would be able to remove my special-casing for Python (see https://github.com/sloria/dotfiles/blob/9b34d1a4ec4ad4942419b7e93ac60027159240ec/roles/vim/files/vimrc#L147-L154).
This copies the syntax file from vim-python/python-syntax, which improves syntax highlighting.
closes #3