Discussion:
[Help-bash] Change hjkl in readline vi editing-mode
m***@bitdweller.com
2017-06-16 04:49:23 UTC
Permalink
Hey folks,

I recently switched to the Colemak keyboard layout and have remapped hjkl in
vim, now I want to do the same for the readline vi editing-mode but I can't
find any related .inputrc settings. I appreciate any help.

Greetings,
Martin
Eduardo Bustamante
2017-06-16 13:15:47 UTC
Permalink
Post by m***@bitdweller.com
Hey folks,
I recently switched to the Colemak keyboard layout and have remapped hjkl in
vim, now I want to do the same for the readline vi editing-mode but I can't
find any related .inputrc settings. I appreciate any help.
[...]

From man 3 readline:

"h" backward-char
"j" next-history
"k" prev-history
"l" forward-char

You need to remap these vi command mode bindings. I.e.

$ bind -m vi-command '"x": backward-char'
--
Eduardo Bustamante
https://dualbus.me/
Loading...