Mercurial > vim
diff runtime/doc/map.txt @ 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 | 3c7da93eb7f9 |
children | fd09a9c8468e |
line wrap: on
line diff
--- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -226,7 +226,7 @@ text before the cursor and start omni co For abbreviations |v:char| is set to the character that was typed to trigger the abbreviation. You can use this to decide how to expand the {lhs}. You -can't change v:char and you should not insert it. +you should not either insert or change the v:char. Be very careful about side effects! The expression is evaluated while obtaining characters, you may very well make the command dysfunctional.