Introduction

 _    ______  ______
| |  / / __ \/ ____/
| | / / /_/ / __/
| |/ / ____/ /___     The Vim Python Extensions
|___/_/   /_____/

This is the documentation for version 0.7.3.

VPE provides a toolkit of modules and classes aimed at making it easier to extend Vim using modern Pythonic code. Its key features are:

  • A Vim class and corresponding vim singleton which provides an API that is is extremely compatible with Vim’s built-in vim module, but includes extended capabilities.

    This makes it relatively easy to convert existing Python based Vim extensions and then start to take advantage of the Vim class’s extra features. See Switching from the vim module for how to do this.

  • The vpe package, containing additional modules and classes which provide:

    • More pythonic APIs for some Vim features.

    • Extension modules and classes to help in writing plugins in Python.

  • Support for plugins, using Python’s standard library entry-point mechanism.

Requirements

VPE requires a minimum of Vim 9.0 and Python 3.11.

User guide