Mercurial > vim
diff src/vim.h @ 2845:d641f141f937 v7.3.196
updated for version 7.3.196
Problem: Can't intercept a character that is going to be inserted.
Solution: Add the InsertCharPre autocommand event. (Jakson A. Aquino)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 19 May 2011 17:25:41 +0200 |
parents | 8bd38abda314 |
children | b0190e93e601 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1274,6 +1274,7 @@ enum auto_event EVENT_WINENTER, /* after entering a window */ EVENT_WINLEAVE, /* before leaving a window */ EVENT_ENCODINGCHANGED, /* after changing the 'encoding' option */ + EVENT_INSERTCHARPRE, /* before inserting a char */ EVENT_CURSORHOLD, /* cursor in same position for a while */ EVENT_CURSORHOLDI, /* idem, in Insert mode */ EVENT_FUNCUNDEFINED, /* if calling a function which doesn't exist */