X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=inputrc;h=cf06ec1a18a4962b348cf48ec3124c221d85303f;hb=b2a118a0ad79bcee7bd83925ac9df338d6087f2f;hp=daa4dec465c7115b52ed286f31d80b353615bd37;hpb=68ad4e859eb3c85db2bb6b33555605f9dc74a007;p=config%2Fdotfiles.git diff --git a/inputrc b/inputrc index daa4dec..cf06ec1 100644 --- a/inputrc +++ b/inputrc @@ -1,7 +1,22 @@ # Configuration file for readline. - -# Only one 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 . + + +# Only one 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,21 @@ set editing-mode vi # KEY BINDINGS -# Also use jj to exit insert mode. -"jj": vi-movement-mode +# Insert mode. + +# Use jk to exit insert mode (jj is too slow). +"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 + +# Allow in Vi normal mode to clear the screen. +"\C-L": clear-screen + +# Command mode. +set keymap vi -"\C-p": previous-history -"\C-n": next-history +# No bindings yet.