2024-02-19 16:07:53 +01:00
|
|
|
|
$include /etc/inputrc
|
|
|
|
|
# Use Vi, not Emacs, style editing
|
|
|
|
|
set editing-mode vi
|
|
|
|
|
# Keymaps for when we're in command mode (e.g., after hitting ESC)
|
|
|
|
|
set keymap vi-command
|
|
|
|
|
set keymap vi-insert
|
|
|
|
|
# Show vim mode indicators
|
|
|
|
|
set show-mode-in-prompt on
|
|
|
|
|
set vi-ins-mode-string ">_"
|
|
|
|
|
set vi-cmd-mode-string "$_"
|
2024-06-18 16:54:59 +02:00
|
|
|
|
# aka set wildmode=longest:full:list,full (tab and shift+tab)
|
2024-02-19 16:07:53 +01:00
|
|
|
|
TAB: menu-complete
|
|
|
|
|
"\e[Z": menu-complete-backward
|
|
|
|
|
set show-all-if-ambiguous on
|
|
|
|
|
set menu-complete-display-prefix on
|
|
|
|
|
# aka vim cmd up/down
|
|
|
|
|
"\e[A":history-search-backward
|
|
|
|
|
"\e[B":history-search-forward
|
|
|
|
|
|
2024-06-18 16:54:59 +02:00
|
|
|
|
# shift+enter
|
2024-03-27 18:44:03 +01:00
|
|
|
|
"OM": history-and-alias-expand-line
|
2024-02-19 16:07:53 +01:00
|
|
|
|
|
|
|
|
|
set colored-stats On
|
|
|
|
|
|
|
|
|
|
"":"\C-W"
|
|
|
|
|
$if mode=vi
|
|
|
|
|
set keymap vi-command
|
|
|
|
|
"daw": "lbdW"
|
|
|
|
|
"yaw": "lbyW"
|
|
|
|
|
"caw": "lbcW"
|
|
|
|
|
"diw": "lbdw"
|
|
|
|
|
"yiw": "lbyw"
|
|
|
|
|
"ciw": "lbcw"
|
|
|
|
|
"da\"": "lF\"df\""
|
|
|
|
|
"di\"": "lF\"lmtf\"d`t"
|
|
|
|
|
"ci\"": "di\"i"
|
|
|
|
|
"ca\"": "da\"i"
|
|
|
|
|
"da'": "lF'df'"
|
|
|
|
|
"di'": "lF'lmtf'd`t"
|
|
|
|
|
"ci'": "di'i"
|
|
|
|
|
"ca'": "da'i"
|
|
|
|
|
"da`": "lF\`df\`"
|
|
|
|
|
"di`": "lF\`lmtf\`d`t"
|
|
|
|
|
"ci`": "di`i"
|
|
|
|
|
"ca`": "da`i"
|
|
|
|
|
"da(": "lF(df)"
|
|
|
|
|
"di(": "lF(lmtf)d`t"
|
|
|
|
|
"ci(": "di(i"
|
|
|
|
|
"ca(": "da(i"
|
|
|
|
|
"da)": "lF(df)"
|
|
|
|
|
"di)": "lF(lmtf)d`t"
|
|
|
|
|
"ci)": "di(i"
|
|
|
|
|
"ca)": "da(i"
|
|
|
|
|
"da{": "lF{df}"
|
|
|
|
|
"di{": "lF{lmtf}d`t"
|
|
|
|
|
"ci{": "di{i"
|
|
|
|
|
"ca{": "da{i"
|
|
|
|
|
"da}": "lF{df}"
|
|
|
|
|
"di}": "lF{lmtf}d`t"
|
|
|
|
|
"ci}": "di}i"
|
|
|
|
|
"ca}": "da}i"
|
|
|
|
|
"da[": "lF[df]"
|
|
|
|
|
"di[": "lF[lmtf]d`t"
|
|
|
|
|
"ci[": "di[i"
|
|
|
|
|
"ca[": "da[i"
|
|
|
|
|
"da]": "lF[df]"
|
|
|
|
|
"di]": "lF[lmtf]d`t"
|
|
|
|
|
"ci]": "di]i"
|
|
|
|
|
"ca]": "da]i"
|
|
|
|
|
"da<": "lF<df>"
|
|
|
|
|
"di<": "lF<lmtf>d`t"
|
|
|
|
|
"ci<": "di<i"
|
|
|
|
|
"ca<": "da<i"
|
|
|
|
|
"da>": "lF<df>"
|
|
|
|
|
"di>": "lF<lmtf>d`t"
|
|
|
|
|
"ci>": "di>i"
|
|
|
|
|
"ca>": "da>i"
|
|
|
|
|
"da/": "lF/df/"
|
|
|
|
|
"di/": "lF/lmtf/d`t"
|
|
|
|
|
"ci/": "di/i"
|
|
|
|
|
"ca/": "da/i"
|
|
|
|
|
"da:": "lF:df:"
|
|
|
|
|
"di:": "lF:lmtf:d`t"
|
|
|
|
|
"ci:": "di:i"
|
|
|
|
|
"ca:": "da:i"
|
|
|
|
|
# esc+* = https://superuser.com/a/216169
|
|
|
|
|
$endif
|