vim-python / Python Syntax
Licence: mit
Python syntax highlighting for Vim
Stars: ✭ 297
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Python Syntax
Nord Emacs
An arctic, north-bluish clean and elegant Emacs theme.
Stars: ✭ 379 (+27.61%)
Mutual labels: syntax, highlighting
remark-highlight.js
Legacy plugin to highlight code blocks with highlight.js — please use `rehype-highlight` instead
Stars: ✭ 58 (-80.47%)
Mutual labels: syntax, highlighting
Markserv
🏁 serve markdown as html (GitHub style), index directories, live-reload as you edit
Stars: ✭ 304 (+2.36%)
Mutual labels: syntax, highlighting
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (-63.3%)
Mutual labels: syntax, highlighting
odin.vim
Vim syntax highlighting for Ginger Bill's programming language, Odin. Derived from jansedivy's jai.vim.
Stars: ✭ 16 (-94.61%)
Mutual labels: syntax, highlighting
KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (-79.8%)
Mutual labels: syntax, highlighting
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (-83.5%)
Mutual labels: syntax, highlighting
Vim Cpp Modern
Extended Vim syntax highlighting for C and C++ (C++11/14/17/20)
Stars: ✭ 229 (-22.9%)
Mutual labels: syntax, highlighting
Chroma
A general purpose syntax highlighter in pure Go
Stars: ✭ 3,013 (+914.48%)
Mutual labels: syntax, highlighting
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-95.29%)
Mutual labels: syntax, highlighting
splash
🌊 Highlight source code embedded in HTML with a splash of color
Stars: ✭ 19 (-93.6%)
Mutual labels: syntax, highlighting
CSpydr
A static typed low-level compiled programming language inspired by Rust and C
Stars: ✭ 17 (-94.28%)
Mutual labels: syntax
Refractor
Lightweight, robust, elegant virtual syntax highlighting using Prism
Stars: ✭ 291 (-2.02%)
Mutual labels: syntax
python-zpar
A python wrapper around the ZPar parser for English.
Stars: ✭ 49 (-83.5%)
Mutual labels: syntax
discotheque.vim
Emphasize pieces of text, with style.
Stars: ✭ 21 (-92.93%)
Mutual labels: highlighting
Equation and Codebox
Microsoft Word VSTO Add-In,可以插入带编号的公式和代码
Stars: ✭ 27 (-90.91%)
Mutual labels: highlighting
Vim Cool
A very simple plugin that makes hlsearch more useful.
Stars: ✭ 268 (-9.76%)
Mutual labels: highlighting
Python syntax highlighting for Vim
This is an enhanced version of the original Vim 6.1 Python syntax highlighting
python.vim
by Neil Schemenauer.
Features
- Enhanced highlighting for:
- Strings
- Special symbols inside strings
- Numeric constants
- Added support for:
- Python 3
- Numbers with underscores
- String %-formatting and f-strings
- Magic comments: source code encoding and shebangs
- New exceptions and builtins
- Doctests
-
@decorator
syntax - Class variables such as
self
,cls
, andmcs
- Operators
- Highlighting of the following errors:
- Invalid symbols in source file
- Invalid numeric constants
- Invalid %-formatting inside strings
- Invalid variable names
- Invalid operators
- Mixing spaces and tabs
- Trailing spaces (Enabled with
g:python_highlight_space_errors
)
- Commands for easy switching between versions
Folding is done by the plugin SimpylFold.
How to install
Use one of the following plugin managers:
Configuration
Option variables
Set variable to 1
to enable or 0
to disable.
For example to enable all syntax highlighting features you can add the
following command to your ~/.config/nvim/init.vim
or ~/.vimrc
:
let g:python_highlight_all = 1
Variable | Description | Default |
---|---|---|
g:python_version_2 |
Python 2 mode | 0 |
b:python_version_2 |
Python 2 mode (buffer local) | 0 |
g:python_highlight_builtins |
Highlight builtin objects, types, and functions | 0 |
g:python_highlight_builtin_objs |
Highlight builtin objects only | 0 |
g:python_highlight_builtin_types |
Highlight builtin types only | 0 |
g:python_highlight_builtin_funcs |
Highlight builtin functions only | 0 |
g:python_highlight_builtin_funcs_kwarg |
Highlight builtin functions when used as kwarg | 1 |
g:python_highlight_exceptions |
Highlight standard exceptions | 0 |
g:python_highlight_string_formatting |
Highlight % string formatting |
0 |
g:python_highlight_string_format |
Highlight syntax of str.format syntax |
0 |
g:python_highlight_string_templates |
Highlight syntax of string.Template
|
0 |
g:python_highlight_indent_errors |
Highlight indentation errors | 0 |
g:python_highlight_space_errors |
Highlight trailing spaces | 0 |
g:python_highlight_doctests |
Highlight doc-tests | 0 |
g:python_highlight_func_calls |
Highlight functions calls | 0 |
g:python_highlight_class_vars |
Highlight class variables self , cls , and mcs
|
0 |
g:python_highlight_operators |
Highlight all operators | 0 |
g:python_highlight_all |
Enable all highlight options above, except for previously set. | 0 |
g:python_highlight_file_headers_as_comments |
Highlight shebang and coding headers as comments | 0 |
g:python_slow_sync |
Disable for slow machines | 1 |
Commands
Command | Description |
---|---|
Python2Syntax |
Switch to Python 2 |
Python3Syntax |
Switch to Python 3 |
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].