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
