LimpidTech/Vimpy — pull request #2 by monokrome (2012-04-12 06:47:22+00:00)
Title: Added Plugin support to Vimpy.

Added a Plugin class in vampy.plugins which provides a Pythonic layer for listening for autocommands without any Vimscript. Instead, you create an object which inherits Plugin and defined methods such as vim_enter, vim_leave, etc.

The method names are direct transformations of the Vim method names where all uppercase letters are converted to lowercase and prefixed with an underscore. No underscores are allowed at the beginning of an event name. So, for instance VimEnter is now vim_enter. VimLeave is now vim_leave.

The one special condition which remains for naming is that post and pre are changed from suffixes to prefixes. So, for instance BufFilePost is not buf_file_post. It is instead transformed into post_buf_file.