[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] How to make vi-insert mode's ctrl-w work in the 4.3 way?
From: |
Clark Wang |
Subject: |
[Help-bash] How to make vi-insert mode's ctrl-w work in the 4.3 way? |
Date: |
Fri, 4 Nov 2016 18:30:42 +0800 |
For example, if I have inputted the following after the prompt:
# foo "abc"
In bash 4.3's vi-insert mode, when I press ctrl-w it'll delete the whole
"abc" (including quotes). But with 4.4 I have to press ctrl-w for 3 times
(one for the right " char, one for abc and one for the left " char).
I tried following but none would work for me:
bind -m vi-insert '"\C-w": vi-unix-word-rubout'
bind -m vi-insert '"\C-w": unix-word-rubout'
bind -m vi-insert '"\C-w": vi-rubout'
bind -m vi-insert '"\C-w": shell-backward-kill-word'
bind -m vi-insert '"\C-w": backward-kill-word'
bind -m vi-insert '"\C-w": kill-word'
-clark
- [Help-bash] How to make vi-insert mode's ctrl-w work in the 4.3 way?,
Clark Wang <=