[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] vim mode changes
From: |
Clark Wang |
Subject: |
Re: [Help-bash] vim mode changes |
Date: |
Mon, 14 Aug 2017 10:19:59 +0800 |
On Sun, Aug 13, 2017 at 11:56 PM, Clark Wang <address@hidden> wrote:
> On Fri, Aug 11, 2017 at 11:25 AM, Chadwick Rogers <address@hidden>
> wrote:
>
>> I found this old thread:
>> http://lists.gnu.org/archive/html/help-bash/2016-11/msg00004.html
>>
>> But my scenario is slightly different. Run bash in vi-mode, type "echo
>> hello world", press enter, press up arrow on your keyboard, press the home
>> key to jump to the beginning of the line followed by the right arrow to
>> the
>> end of 'hello' or press the left arrow to the end of 'hello', press
>> ctrl+w,
>> the word will not delete. Go back to the end of the line, press ctrl+w
>> three times and deleting works fine all the way to the beginning of the
>> line. Adding "set bind-tty-special-chars off" to my inputrc has no effect
>> on this.
>>
>> Any help would be appreciated.
>>
>
> I have the following in my bashrc:
>
> bind 'set bind-tty-special-chars off'
> bind -m vi-insert '"\C-w": unix-word-rubout'
>
Just found a Debian 9 Linux and reproduced your problem. And my settings
seem to have fixed it.
>
> Not sure if it works for you. (I'm on a Mac now and have no idea which key
> combo is equal to Home. Will try your problem later on a Linux.)
>