in reply to VI In A Perl Script

Depending on your use case this may be useful: gnu readline supports user-defined customizations (including vi and emacs-like keyboard short-cuts). Which has the advantage that people who prefer the other don't have to live with your preferences.

See Term::ReadLine::Gnu.

Replies are listed 'Best First'.
Re^2: VI In A Perl Script
by Metarika (Novice) on Feb 18, 2008 at 03:09 UTC
    If I had a dollar for every time someone has said "I've never wanted to do anything like this" I would have had someone do this for me :) I followed you suggestion about the Term::ReadLine::Gnu, but by I found that it didn't work exactly the way I wanted, or I didn't know how to use it. However, this is exactly what I want and I'm using it correctly -> Term::ReadLine::Zoid All vi functionality including an automatic history buffer is contained in it. Thanks guys.