diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-07-18 21:49:49 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-07-18 21:49:49 +0200 |
| commit | ed29cb9a2e7fffb46fe24f90981d687220bb3ef6 (patch) | |
| tree | 0a5b6dc9430029fb41ffcf69b78a298defcaec5d | |
| parent | 3920bc6e91ba1c696a4db2da8bcd53c4726d00ac (diff) | |
| download | dotfiles-ed29cb9a2e7fffb46fe24f90981d687220bb3ef6.tar.gz dotfiles-ed29cb9a2e7fffb46fe24f90981d687220bb3ef6.zip | |
Allow Vim keybinds in the Python REPL (and other readline programs)
| -rw-r--r-- | .config/inputrc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/inputrc b/.config/inputrc index e8a13b6..8d3920c 100644 --- a/.config/inputrc +++ b/.config/inputrc @@ -1,5 +1,15 @@ $include /etc/inputrc +set editing-mode vi +set keymap vi-insert +"\f": clear-screen +set show-mode-in-prompt on +set vi-cmd-mode-string "\1\e[2 q\2" +set vi-ins-mode-string "\1\e[6 q\2" + +# Reduce the delay between pressing escape and the cursor change +set keyseq-timeout 0 + #set -o vi #lset keymap vi #$if mode=vi |
