Vi editor code

Does any one have the code to create a shell scrpit for making a VI editor ?
mouse trapping of menus is also required...:frowning:
Regards,
Bhaskar.

I think it would be difficult to create something as complex as vi from within a shell script. vi is written in C and has been developed with thousands of programmer hours over many years.

I agree completely with PxT.
If you are actually interested in the "vi" source code then
you can download the tarball at...

You also mention mouse trapping, etc. so I'm also
thinking you're looking for a "graphical" editor.
In general, "vi" is text based however, X windows can be
used to set various "vi modes" based on mouse button
clicks, etc. This may not be what you are looking for.

There are also other "variants" of vi that are more
graphically oriented but I don't use any of them.