[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disable default TAB in vi mode
From: |
Chet Ramey |
Subject: |
Re: Disable default TAB in vi mode |
Date: |
Thu, 5 Oct 2023 09:30:20 -0400 |
User-agent: |
Mozilla Thunderbird |
On 9/29/23 11:29 AM, Sam Habiel wrote:
The documentation says this:
Thus, to disable the default TAB behavior, the following suffices:
rl_bind_key ('\t', rl_insert);
This indeed works for emacs mode; but apparently it doesn't work for vi mode.
Any tips on how to achieve the same for vi mode?
That call modifies the current keymap. If you want to ensure that you
change it for vi mode, use something like
rl_bind_key_in_map ('\t', rl_insert, vi_insertion_keymap);
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: Disable default TAB in vi mode,
Chet Ramey <=