X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=inputrc;h=5e8c0b2c4c0d008ce2364db8a003ddb76903c703;hb=75e0616f82cd0b9e057692c065ada56de2b4f321;hp=fbb452f7a9a15f7e8f31d2081e5a43c0b3ce95b4;hpb=648929874799d5c3db6ba5a7cfab874ca9b0306f;p=config%2Fdotfiles.git diff --git a/inputrc b/inputrc index fbb452f..5e8c0b2 100644 --- a/inputrc +++ b/inputrc @@ -1,18 +1,44 @@ # 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 # KEY BINDINGS -# Also use jj to exit insert mode. -"jj": vi-movement-mode +# Use jk to exit insert mode (jj is too slow). +"jk": vi-movement-mode -"\C-p": previous-history -"\C-n": next-history +# / 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