Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

How to catch key event from vi editor

Occasional Advisor

How to catch key event from vi editor

Hi,


We are having certain list of functins stored in a file. when ever I write the function name followed by ( then it should serarch that function name and display it on the bottom of the vi editor.

for this i need two things
1. how to catch keys from vi edior and run the script.

2. how to display some message in the bootm of the vi editor.

I am not sure is it possible or not if possible please suggest a way to do it.


Thanks
Raj Kumar
2 REPLIES
Acclaimed Contributor Acclaimed Contributor

Re: How to catch key event from vi editor

Isn't there some type of tags in vi that would do something similar?

See tag and tags in ex(1).
Honored Contributor Honored Contributor

Re: How to catch key event from vi editor

Hi,

To add with the above:

man 1 ctags

ctags is a tool which creates an index file describing where functions in source code are defined.

For more info
http://ctags.sourceforge.net/

Regards,
Rasheed Tamton.