This repository has been archived on 2021-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
terminal/inputrc
Kenneth Benzie (Benie) 78004d8067 Add readline and editline config files
Enable vi mode in readline and editline configs.
2018-08-01 22:18:57 +01:00

14 lines
263 B
Plaintext

# Enable vi mode
set editing-mode vi
# Normal mode mappings
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
# Insert mode mappings
set keymap vi-insert
"\C-[": vi-movement-mode
"\C-p": history-search-backward
"\C-n": history-search-forward