[lug] command line editing in vi

Holshouser, David dholshou at ball.com
Thu Jun 7 09:58:50 MDT 2001


that is possible. 
Since I've seen many people use bash in vi mode, I assumed that was the
intention (oh wait, that was tcsh.) 
After looking back at the first email, I think you are right. Sorry don't
know how to make vi do that.

> -----Original Message-----
> From: Shannon Johnston [mailto:nunar at iws.net]
> Sent: Thursday, June 07, 2001 10:51 AM
> To: lug at lug.boulder.co.us
> Subject: RE: [lug] command line editing in vi
> 
> 
> Correct me if I'm wrong, but it sounds to me like Hugh is looking for
> something that will simulate bash history in vim. I.E. - the 
> ability to
> push the UP arrow and scroll through a list of commands 
> previously run.
> 
> Shannon
> 
> On Thu, 7 Jun 2001, Holshouser, David wrote:
> 
> > I believe, when you are on the command line in vi mode, that it uses
> > command/insert modes automagically in different situations.
> > 
> > Just after you have finished a command, you are in command mode.
> > If you are in insert mode, the arrow keys are read as 
> input, otherwise they
> > work as expected.
> > 
> > in all forms of vi, my advice is
> > 
> > when in doubt, hit escape (maybe even a couple of times).
> > 
> > That will make sure you are in command mode, which will let 
> arrow keys work.
> > 
> > > -----Original Message-----
> > > From: Dhruva Reddy [mailto:sledgehammer2010 at yahoo.com]
> > > Sent: Thursday, June 07, 2001 9:35 AM
> > > To: lug at lug.boulder.co.us
> > > Subject: Re: [lug] command line editing in vi
> > > 
> > > 
> > > I never could figure out how to get vi to do this, or
> > > why it sometimes does and sometimes doesn't.
> > > 
> > > I don't know how well versed you are in vi, but 'k'
> > > moves up one line and 'j' moves down one line (you of
> > > course need to go into command mode first by hitting
> > > esc)
> > > 
> > > --- Hugh Brown <hugh at vecna.com> wrote:
> > > > I am using vim on rh 7.1.  When I go to the command
> > > > line mode and type an
> > > > up arrow to try and go to the previous command, I
> > > > get <Up> instead of the
> > > > previous command.
> > > > 
> > > > Anyone know what gives or what I need to change?
> > > > 
> > > > Hugh
> > > > _______________________________________________
> > > > Web Page:  http://lug.boulder.co.us
> > > > Mailing List:
> > > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail - only $35 
> > > a year!  http://personal.mail.yahoo.com/
> > > _______________________________________________
> > > Web Page:  http://lug.boulder.co.us
> > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > 
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 



More information about the LUG mailing list