X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=inputrc;h=7f0c775dff52564a5efe74c0a539a57a1ecf4252;hb=975eb217f9e6396c725f2aa2ab6485b42166afbe;hp=12f2d9bc9e96cdd9eb3480cdcbf066f2e17c97cc;hpb=379429a85e512e8b7e9a3c85837a78b0c24677e4;p=config%2Fdotfiles.git
diff --git a/inputrc b/inputrc
index 12f2d9b..7f0c775 100644
--- a/inputrc
+++ b/inputrc
@@ -1,9 +1,45 @@
# Configuration file for readline.
+# Copyright (C) 2011-2012 Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file. If not, see .
-# Only one is necessary to get a list of all possible options.
+
+# Only one is necessary to get a list of all possible options.
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
+
+# / 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