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
Vimclass and correspondingvimsingleton which provides an API that is is extremely compatible with Vim’s built-invimmodule, but includes extended capabilities.This makes it relatively easy to convert existing Python based Vim extensions and then start to take advantage of the
Vimclass’s extra features. See Switching from the vim module for how to do this.The
vpepackage, 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
- Installation
- Getting started
- Using Buffers
- Using Windows
- The VPE and other logs
- Scratch buffers
- Handling keys, events, etc.
- Timers and deferred actions
- VPE plug-in mechanism
- Events, aka auto-commands
- User defined commands
- Module vpe
- Module vpe.app_ui_support
- Module vpe.channels
- Module vpe.config
- Module vpe.core
- Module vpe.diffs
- Module vpe.mapping
- Module vpe.message_bus
- Module vpe.panels
- Module vpe.syntax
- Module vpe.ui
- Module vpe.user_commands
- Module vpe.windows
- Module vpe.wrappers
VIM_DEFAULTVI_DEFAULTcommandslogvimAutoCmdGroupBufEventHandlerBufListenerBufferBuffersCallbackCommandHandlerCommandInfoCurrentEventHandlerFinishGlobalOptionsKeyHandlerLogManagedIOBufferOneShotTimerOptionsPopupPopupAtCursorPopupBevalPopupDialogPopupMenuPopupNotificationRangeRegistersScratchBufferStructTabPageTabPagesTimerVariablesVimVimErrorWindowWindowssaved_current_windowsaved_winviewtemp_active_windowcall_soon()call_soon_once()define_command()dot_vim_dir()echo_msg()error_msg()find_buffer_by_name()get_display_buffer()get_managed_io_buffer()highlight()pedit()popup_clear()script_py_path()warning_msg()