[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash readline remap ESC insert/command mode key
From: |
Roger |
Subject: |
Bash readline remap ESC insert/command mode key |
Date: |
Wed, 18 Jan 2012 21:58:18 -0900 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
I use vi mode for Bash's realine and want to remap the ESC key to double 'ii'
and ';;' instead of having to remove my hands from the keyboard to tap the ESC
key.
>From what I see, I would be using something similar to:
$ bind -m vi-command '"ii": <toggle insert/command mode command>'
Second issue, I'm not sure of the command to use for toggling insert/command
mode. (ie. bind -l) I think the two commands are vi-insertion-mode and
vi-movement-mode.
I do know double key taps works such as the 'dd' key press sequence to delete a
line, but only while in vi-movement mode or AKA command mode.
Any ideas? I'm all Googled-out over this one.
--
Roger
http://rogerx.freeshell.org/
- Bash readline remap ESC insert/command mode key,
Roger <=
- Re: Bash readline remap ESC insert/command mode key, Roger, 2012/01/19
- Re: Bash readline remap ESC insert/command mode key, Roger, 2012/01/19
- Re: Bash readline remap ESC insert/command mode key, Chet Ramey, 2012/01/21
- Re: Bash readline remap ESC insert/command mode key, Roger, 2012/01/22
- Re: Bash readline remap ESC insert/command mode key, Chet Ramey, 2012/01/22
- Re: Bash readline remap ESC insert/command mode key, Roger, 2012/01/23
- Re: Bash readline remap ESC insert/command mode key, Chris Jones, 2012/01/23
- Re: Bash readline remap ESC insert/command mode key, Chet Ramey, 2012/01/23
- Re: Bash readline remap ESC insert/command mode key, Chris Jones, 2012/01/25
- Re: Bash readline remap ESC insert/command mode key, Roger, 2012/01/25