Skip to content

Python syntax highlighting script for Vim

Notifications You must be signed in to change notification settings

kh3phr3n/python-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Python syntax highlighting script for Vim

Enhanced version of the original Python syntax highlighting script. Based on python.vim from Vim 7.4 distribution by Zvezdan Petkovic.

python-syntax

Features

Changes from the original python.vim are:

  • [OFF] Highlight self, cls keywords

  • [ON] Highlight class, function parameters

  • [ON] Highlight standard operators: ~,!,^,&,|,*,/,%,+,-

  • [ON] Highlight pseudo operators: -=,//=,*=,&=,%=,+=,!=

  • 3 extras options:

    • let python_self_cls_highlight = 1
    • let python_no_operator_highlight = 1
    • let python_no_parameter_highlight = 1
  • All the options can be switched on together (recommended).

    • let python_highlight_all = 1

Color Scheme

  • Vim keywords:

    • pythonRepeat pythonConditional pythonInclude pythonTodo pythonComment pythonStatement
    • pythonEscape pythonSpaceError pythonException pythonExceptions pythonDoctest pythonDoctestValue
    • pythonNumber pythonString pythonRawString pythonBuiltin pythonFunction pythonClass pythonDecorator
    • pythonSelf pythonConstant pythonBrackets pythonOperator pythonExtraOperator pythonExtraPseudoOperator pythonClassParameters pythonFunctionParameters

How to install

The easiest installation method is to place syntax/python.vim script into your ~/.vim/syntax/ directory. You can also use Pathogen or Vundle plugin managers in which case you can install the whole kh3phr3n/python-syntax repository into the corresponding plugins directory.

Informations

This plugin is strongly inspired by:

Contributors

About

Python syntax highlighting script for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published