bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having both Emacs and vi Keybindings.


From: Chet Ramey
Subject: Re: Having both Emacs and vi Keybindings.
Date: Mon, 19 Aug 2002 15:38:10 -0400

> I've moved to bash after many years of tcsh.  It great having decent
> for-loops to hand.
> 
> One thing I miss is some Emacs keys still working after a `bindkey -v',
> i.e.  `set -o vi', e.g. ^P, ^N, ^A.  Is there an easy way to get the
> same effect, or should I just add those I'm missing into the vi keymap?
> 
> (Repeat command seems quickest as `^P Return' compared to `!! Return' or
> `ESC k Return').

You should be able to bind them in ~/.inputrc:

set keymap vi-insert
"\C-P":previous-history
"\C-N":next-history
"\C-A":beginning-of-line
        [...]

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]