From ed29cb9a2e7fffb46fe24f90981d687220bb3ef6 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 18 Jul 2023 21:49:49 +0200 Subject: Allow Vim keybinds in the Python REPL (and other readline programs) --- .config/inputrc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config') 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 -- cgit v1.2.3