Hacker News new | past | comments | ask | show | jobs | submit login
Vi implementation written entirely in Javascript (internetconnection.net)
58 points by kf on May 5, 2008 | hide | past | favorite | 19 comments



That's pretty impressive. I'm no vinja but it had all the shortcuts I knew about.


Nice. Someone should do an emacs just so we can see the look on Steve Yegge's face. Combining JavaScript, Firefox, and Emacs might make his pants a little damp, if you know what I mean.


C-u 5 M-x cleanup-in-aisle


I know what you mean.


Looking at the source, you can enable an pseudo-emacs mode with ":emacs". There don't seem to be very many commands implemented for it yet, though.


There aren't.

This was originally designed for an email client at http://demo.internetconnection.net/netmail/ and was originally going to be the editor for it. That is, "emacs" mode was going to be the default for people who don't know vi, not a vi-script that was trying to cater to emacs users.

However, the textarea itself was fine, so it just became an option in the settings manager to "enable" the vi editor, and the emacs-mode kind of got forgotten.


It traps all my key presses! I use Vimporator in Firefox and this kills my ability to do that. Maybe if there was a sort of meta-escape, that escaped you to browser shortcuts, but I didn't see one.

Cool though.


There's one in every crowd. It used to be legacy users, now it's people who emulate legacy users ;-)


I had to use the MOUSE to go back! It was horrible! :O


I'm very sorry about that.

I suppose a browser-escape could be possible; press some keystroke and then it unbinds the key handler for 3 seconds or something.

Any suggestion?


That sounds like it might work. I have no suggestions of my own however.

I don't know why you should be sorry. :)


Sorry that you had to use the mouse to escape. I was hoping you could suggest an escape key.

I'm the author of jsvi.


so when can we start editing submissions with this


If this were the only way to post comments, even Reddit's signal-to-noise ratio might improve.


This is very neat, and responsive too ...

I am impressed!


That is so freaking cool!


Sick. But I love it!


oh wow nice, only on hacker news can i find this


and reddit...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: