commit 2cd91e4d11d678d093015ef357de0cf298db4535
parent 3d46b73c27e3e9723e2dcde2ef5a3eb71ba05581
Author: Luxferre <lux@ferre>
Date: Tue, 30 Jan 2024 18:41:28 +0200
some useful .inputrc edits for ricing ed
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/.inputrc b/.inputrc
@@ -1,10 +1,13 @@
set editing-mode emacs
+set enable-meta-key on
set input-meta on
set output-meta on
+set convert-meta on
set enable-keypad on
set bell-style none
set show-all-if-ambiguous on
set completion-ignore-case on
+set bind-tty-special-chars off
# Home, Insert, Del, End, PgUp, PgDn
@@ -15,6 +18,11 @@ set completion-ignore-case on
"\e[5~": beginning-of-history
"\e[6~": end-of-history
+# History search with Up/Down arrows
+
+"\e[A": history-search-backward
+"\e[B": history-search-forward
+
# Ctrl+arrows (might not work everywhere)
"\e[1;5C": forward-word
@@ -27,3 +35,11 @@ set completion-ignore-case on
"\e[F": backward-word
"\eOH": forward-word
"\eOF": backward-word
+
+# Combos for ricing ed to the moon and back
+# exit insert mode with Alt+Space
+# save with Ctrl+W
+
+Meta-SPC: "\n.\n"
+Control-w: "\n.\nw\n"
+