]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - inputrc
inputrc: clear screen in insert mode with C-L
[config/dotfiles.git] / inputrc
diff --git a/inputrc b/inputrc
index 981c6213ac6ae4a27a7e7a4e25479681217084ee..63c660bf41cedb94edf67abaee37e08fc985bf39 100644 (file)
--- a/inputrc
+++ b/inputrc
@@ -1,7 +1,22 @@
 # Configuration file for readline.
 
-
-# Only one <tab> is necessary to get a list of all possible options.
+# Copyright (C) 2011-2014  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 <http://www.gnu.org/licenses/>.
+
+
+# Only one <Tab> is necessary to get a list of all possible options.
 set show-all-if-ambiguous on
 set show-all-if-unmodified on
 
@@ -19,8 +34,7 @@ set editing-mode vi
 
 # KEY BINDINGS
 
-# Use jj and jk to exit insert mode.
-"jj": vi-movement-mode
+# Use jk to exit insert mode (jj is too slow).
 "jk": vi-movement-mode
 
 # <Up>/<Down> with the additional effect that only lines starting with the
@@ -28,3 +42,6 @@ set editing-mode vi
 # type the first few characters.
 "\C-p": history-search-backward
 "\C-n": history-search-forward
+
+# Allow <C-L> in Vi normal mode to clear the screen.
+"\C-L": clear-screen