Operating System - Linux
1752777 Members
6159 Online
108789 Solutions
New Discussion юеВ

How to catch key event from vi editor

 
kumar_choudhury
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 2
Dennis Handly
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).
Rasheed Tamton
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.