sponsor Vim development Vim logo Vim Book Ad

GetChar event patch : Adds a new event intercepting char reads

 script karma  Rating 20/5, Downloaded by 960  Comments, bugs, improvements  Vim wiki

created by
Eric Arnold
 
script type
utility
 
description
When compiled with this patch, Vim will have a new event, "GetChar".

The doc page patch:


                            *GetChar*
GetChar             Called immediately after a character is
                received from the user or typeahead buffer,
                and before it is processed.  The character is
                available in the |v:getchar| variable as a
                string (not a number).  Changing |v:getchar|
                changes the value returned by the
                |getchar()|function.  The |v:getchartype|
                variable can be blank, 'KeyTyped', or
                'KeyStuffed', depending on how the character
                was obtained.  Setting |v:getchar| to ''
                essentially skips the current character.
 
install details
Apply the patches to the source files, and check out the test script.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
getchar_event.zip 1.0 2006-05-13 7.0 Eric Arnold Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github