]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - inputrc
zsh/rc: Add pdf command.
[config/dotfiles.git] / inputrc
diff --git a/inputrc b/inputrc
index b18da701cb36a0fda34715509bfb37621fc7b328..981c6213ac6ae4a27a7e7a4e25479681217084ee 100644 (file)
--- a/inputrc
+++ b/inputrc
@@ -5,6 +5,26 @@
 set show-all-if-ambiguous on
 set show-all-if-unmodified on
 
+# Always complete all items no matter how many there are.
+set completion-query-items -1
+# And make sure we use a pager for completions (this is also the default).
+set page-completions on
+
+# Add character to files denoting the type when completing file names.
+set visible-stats on
+
 # Activate Vi editing mode.
 set editing-mode vi
-set keymap vi
+
+
+# KEY BINDINGS
+
+# Use jj and jk to exit insert mode.
+"jj": vi-movement-mode
+"jk": vi-movement-mode
+
+# <Up>/<Down> with the additional effect that only lines starting with the
+# current input are matched. Very useful to recall old commands quickly - just
+# type the first few characters.
+"\C-p": history-search-backward
+"\C-n": history-search-forward