Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Vim's highlighting is more limited. Vim uses regex for syntax highlighting as opposed to using ASTs. You can try looking in the Neovim direction instead. Here's some Neovim-only plugin https://github.com/numirias/semshi for python specifically.
Was gonna recommend this as well. Here's a link to it: nvim-treesitter
I use this file in the after/syntax folder and looks good.
The easiest and least-effort way of getting this would be to use this extended and well-maintained version of the Python syntax file: https://github.com/vim-python/python-syntax It can be installed as a Vim plugin.
I've been using https://github.com/amix/vimrc as a config base, with a few customizations on top. Python highlighting works out of the box.
Related posts
- JetBrains' unremovable AI assistant meets irresistible outcry
- Use the builtin `listchars` option to implement minimalistic indent guides
- Should Neovim now release a standard official configuration so that people who want an editor that just works out of the box get onboarded easily ?
- What are the benefits of using nvim-lspconfig?
- How do you fix inconsistent colorscheme (struct and class)?