sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

GetChar event patch : Adds a new event intercepting char reads

 script karma  Rating 16/4, Downloaded by 496    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.
 

Rating scripts is only available on the HTTPS page

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: 54.226.179.247

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.
   
SourceForge.net Logo