I had a small project balloon. I started adding vi-like commands to a Tk::Text widget to keep my :w-typing habit in check, added in a few more because df, is so useful, added a few more because :map seemed like an interesting problem. It's now at the point where I have all but a few commands that I absolutely need.

So, two questions:

tar of the module and a demo script. (Not tested with 5.8, but I don't think I did anything that weird)

Replies are listed 'Best First'.
Re: Tk::Text with Vi; Silly or not?
by dragonchild (Archbishop) on Mar 22, 2008 at 02:40 UTC
    Definitely useful. I would say Tk::Text::ViCommands

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Re: Tk::Text with Vi; Silly or not?
by Muggins (Pilgrim) on Mar 22, 2008 at 13:19 UTC

    Silly but superb :)

    I'm having a shot at adding 'o', 'O', and some other normal mode things ('b', 'e') to your module. Though I don't know Tk::Text all that well.

    Using (Activestate) 5.8.8 on Windows. Mostly ok thus far - does normal mode 't' do exactly what it should do? Seems to be moving to 2 chars before next occurrence of a letter?

Re: Tk::Text with Vi; Silly or not?
by zentara (Cardinal) on Mar 22, 2008 at 13:02 UTC
    I don't use vi (still a Midnight Commander holdout), but so many people claim it's the best thing going (once you get over the learning curve), that I would say put it out there as a module. Someone will find it useful.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum