Re: JSVI: Vi implemented in Javascript
On Wed, 30 May 2007 14:21:27 -0400, Kevin Old [EMAIL PROTECTED] wrote: Not sure if everyone's seen this, but it's definitely cool and quite accurate. http://ajaxian.com/archives/jsvi-you-love-vi-you-love-javascript-now-you-have-both Unfortunately, in Opera it detects shift-presses as extra keys in their own right instead of modifiers, so something like :%s/a/b/g fails because the % is preceded by the extra character. I once created a single-line emulation of vi in Perl for a terminal- oriented program I was writing. It's surprising how little code you need to implement the basic editing commands. I think it's because once you've provided w to move to the next word you get cw and dw almost for free, and so on for other movements. -- Matthew Winn
JSVI: Vi implemented in Javascript
Not sure if everyone's seen this, but it's definitely cool and quite accurate. http://ajaxian.com/archives/jsvi-you-love-vi-you-love-javascript-now-you-have-both -- Kevin Old [EMAIL PROTECTED]
Re: JSVI: Vi implemented in Javascript
Kevin Old wrote: Not sure if everyone's seen this, but it's definitely cool and quite accurate. http://ajaxian.com/archives/jsvi-you-love-vi-you-love-javascript-now-you-have-both Hmm... when's the day when Vim will be implemented in Lisp, so if the boss wants everyone to use Emacs, we can obey and still have the look, feel and functionality of Vim? (Not necessarily the speed, though.) Best regards, Tony. -- It says he made us all to be just like him. So if we're dumb, then god is dumb, and maybe even a little ugly on the side. -- Frank Zappa
Re: JSVI: Vi implemented in Javascript
Hi! On Wed, 30 May 2007, A.J.Mechelynck wrote: Kevin Old wrote: Not sure if everyone's seen this, but it's definitely cool and quite accurate. http://ajaxian.com/archives/jsvi-you-love-vi-you-love-javascript-now-you-have-both Hmm... when's the day when Vim will be implemented in Lisp, so if the boss wants everyone to use Emacs, we can obey and still have the look, feel and functionality of Vim? (Not necessarily the speed, though.) Of course, that has already been done. It's called viper: http://www.delorie.com/gnu/docs/emacs/viper.html Viper Is a Package for Emacs Rebels. Nice Backronym, too. Regards, Tobias PS: I don't know if it's pure lisp. But hey, I don't need it :) -- In the future, everyone will be anonymous for 15 minutes.
Re: JSVI: Vi implemented in Javascript
[Tobias Klausmann] On Wed, 30 May 2007, A.J.Mechelynck wrote: Hmm... when's the day when Vim will be implemented in Lisp [...] Of course, that has already been done. It's called viper: http://www.delorie.com/gnu/docs/emacs/viper.html Viper Is a Package for Emacs Rebels. It's quite far from Vim. Only vi, that is, almost unusable :-). -- François Pinard http://pinard.progiciels-bpi.ca
Re: JSVI: Vi implemented in Javascript
Tobias Klausmann wrote: Hi! On Wed, 30 May 2007, A.J.Mechelynck wrote: [...] Hmm... when's the day when Vim will be implemented in Lisp, so if the boss wants everyone to use Emacs, we can obey and still have the look, feel and functionality of Vim? (Not necessarily the speed, though.) Of course, that has already been done. It's called viper: http://www.delorie.com/gnu/docs/emacs/viper.html Viper Is a Package for Emacs Rebels. Nice Backronym, too. Regards, Tobias PS: I don't know if it's pure lisp. But hey, I don't need it :) Neither do I know, neither do I need it, and Emacs-script is rumored to be Lisp, but since I don't use Emacs (and never did, except maybe for just a few minutes until I found out it wasn't the editor for me), and never used Lisp either (I just know it uses way too much parentheses for sanity) so I don't rightly know. Best regards, Tony. -- In the long run, every program becomes rococo, and then rubble. -- Alan Perlis
Re: JSVI: Vi implemented in Javascript
On 5/30/07, Kevin Old [EMAIL PROTECTED] wrote: Not sure if everyone's seen this, but it's definitely cool and quite accurate. http://ajaxian.com/archives/jsvi-you-love-vi-you-love-javascript-now-you-have-both -- Kevin Old [EMAIL PROTECTED] Wow... That is brilliant. I kinda wish I were stuck with it, just because it's so ridiculous. -- -fREW
Re: JSVI: Vi implemented in Javascript
Hi! On Wed, 30 May 2007, A.J.Mechelynck wrote: Tobias Klausmann wrote: Hi! On Wed, 30 May 2007, A.J.Mechelynck wrote: [...] Hmm... when's the day when Vim will be implemented in Lisp, so if the boss wants everyone to use Emacs, we can obey and still have the look, feel and functionality of Vim? (Not necessarily the speed, though.) Of course, that has already been done. It's called viper: http://www.delorie.com/gnu/docs/emacs/viper.html Viper Is a Package for Emacs Rebels. Nice Backronym, too. Regards, Tobias PS: I don't know if it's pure lisp. But hey, I don't need it :) Neither do I know, neither do I need it, and Emacs-script is rumored to be Lisp, but since I don't use Emacs (and never did, except maybe for just a few minutes until I found out it wasn't the editor for me), and never used Lisp either (I just know it uses way too much parentheses for sanity) so I don't rightly know. The one use case I know of was binary-patching UUCP back in the day. Back then, vi barfed on line lengths 255. But emacs was just unusable for an admin!. So there was a small howto on installing viper in emacs in order to patch the UUCP binary. Emacs for line length, viper for usability. That howto even made it into a magazine. Regards, Tobias -- In the future, everyone will be anonymous for 15 minutes.
Re: JSVI: Vi implemented in Javascript
On 5/30/07, François Pinard [EMAIL PROTECTED] wrote: [Tobias Klausmann] On Wed, 30 May 2007, A.J.Mechelynck wrote: Hmm... when's the day when Vim will be implemented in Lisp [...] Of course, that has already been done. It's called viper: http://www.delorie.com/gnu/docs/emacs/viper.html Viper Is a Package for Emacs Rebels. It's quite far from Vim. Only vi, that is, almost unusable :-). Unfortunately it doesn't emulate vi properly either. --Antony