Vim:Python
lastmod 2026-11-10created 2018-09-065 edits
Vim:Python is a page about controlling the editor and writing plugins with the Python interface built into Vim. In a Vim built with Python support, you can run scripts with the :python and :pyfile commands and access buffers, windows, the cursor, variables, and commands through the vim module. Because complex logic can be implemented in a language more familiar than Vim script, plugins such as YouCompleteMe use this approach.
See also
Favorite site
Example
- Github - amoffat/snake/plugin/snake/init.py (Snake)
- Github - Valloric/YouCompleteMe/autoload/youcompleteme.vim (YouCompleteMe)
Guide
Pages that link here