*python-syntax* *ft-python-syntax* *python.vim* =============================================================================== Configuration *python-syntax-configuration* Enable option with: > let OPTION_NAME = 1 < Disable option with: > let OPTION_NAME = 0 < For example to enable all syntax highlighting features you can place the following command in your `~/.config/nvim/init.vim` or `~/.vimrc` script: > let g:python_highlight_all = 1 < ------------------------------------------------------------------------------- Options and commands to select Python version *python-syntax-version* `g:python_version_2` or `b:python_version_2` Enable highlighting for Python 2 (Python 3 highlighting is enabled by default). The following commands can be used to switch between modes: `Python2Syntax` Switch to Python 2 `Python3Syntax` Switch to Python 3 ------------------------------------------------------------------------------- Options *python-syntax-options* `g:python_highlight_builtins` Highlight builtin functions and objects `g:python_highlight_builtin_objs` Highlight builtin objects only `g:python_highlight_builtin_funcs` Highlight builtin functions only `g:python_highlight_exceptions` Highlight standard exceptions `g:python_highlight_string_formatting` Highlight `%` string formatting `g:python_highlight_string_format` Highlight syntax of `str.format` syntax `g:python_highlight_string_templates` Highlight syntax of `string.Template` `g:python_highlight_indent_errors` Highlight indentation errors `g:python_highlight_space_errors` Highlight trailing spaces `g:python_highlight_doctests` Highlight doc-tests `g:python_print_as_function` Highlight `print` statement as function for Python 2 `g:python_highlight_file_headers_as_comments` Highlight shebang and coding headers as comments `g:python_highlight_all` Enable all the options above - NOTE: Doesn't override any previously set options `g:python_slow_sync` Disable for slow machines