3 ms·
They're the default keys because a lot of programs use the GNU readline package for line editing.
by mtnygard 3y ago
They're the default keys because a lot of programs use the GNU readline package for line editing.
- tomjakubowski 3y agoIt's also possible to configure GNU readline on your system to use vi keys. See https://vim.fandom.com/wiki/Use_vi_shortcuts_in_terminal https://vim.fandom.com/wiki/Use_vi_shortcuts_in_terminal Put this in ~/.inputrc set editing-mode vi set keymap vi-command
- neilparikh 3y agoYou'll also want `set show-mode-in-prompt on`. Note that this feature is broken when you have a PS1 with a \n in it, in an older version of readline/bash (I am not sure which), so if you're having this problem, just upgrade your bash version.