Wednesday, April 21, 2010

Browser vi !!

Today, I found a interesting find. At the office I was wondering if anybody has given a try to develop vi(unix text editor) in browser. Thinking that this thought is a rear idea, if not I could give an attempt. With a grin on my face, I opened up Google homepage and gave a couple of tries, and voilĂ , I got a hit and this page seems to be what I had in my mind.

http://gpl.internetconnection.net/vi/

I gave it a try. As soon as the page opened, the block cursor started blinking at the top left side of the browser page. First I tried search command and it seems to be working. With my eyebrow raised for more vi features, I gave a try for ":se nu". Sadly this command didn't work, instead I got a weird error. So I tried getting help as done in vanilla "vi" using ":help" command. This too didn't work. The command showed up a message, but nothing more than that. With the grin fading out on my face, i tried moving cursor up and down. Finding that this was working, I entered into insert mode and added some text here and there, things were fine here. Now for coming out of the insert mode I pressed "ESC" button. It didn't work. It seems browser is trapping the ESC button and not letting javascript to get the event.

Disappointed with this, I had to close the tab forcefully and exit.

No comments: