title: Invoking a function on a keypress in vim editor compiled with python
body: <p>I'm looking for a code to invoke a plugin when a key is pressed in VIM editor in Linux terminal.The plugin has to replace automatically an image path given in the file opened in Vim with that image converted into ascii. Please help me in adding key press so that the plugin works in an automated fashion???</p>