Skip to content

Instantly share code, notes, and snippets.

@pangpond
Created October 6, 2014 03:53
Show Gist options
  • Save pangpond/a1e5c4a8f5d6e89541e4 to your computer and use it in GitHub Desktop.
Save pangpond/a1e5c4a8f5d6e89541e4 to your computer and use it in GitHub Desktop.
.inputrc
## Linux-Mandrake Configuration
# (c) MandrakeSoft, Chmouel Boudjnah <[email protected]>, Pablo Saratxaga <[email protected]>
# $Id: inputrc,v 1.4 2000/03/27 12:13:17 chmouel Exp $
# Show all if ambigious.
set show-all-if-ambiguous off
#set show-all-if-ambiguous on
# 8Bits supports.
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on
# Keyboard configuration
"[2~": yank # Insert
"[3~":delete-char # Suppr
"[1~": beginning-of-line # Home
"[4~": end-of-line # End
#"[5~": previous-history # Previous
#"[6~": next-history # Next
# those two are for rxvt
"\e[7~":beginning-of-line
"\e[8~":end-of-line
# on some xterm
"\e[H": beginning-of-line
"\e[F": end-of-line
# on nxterms
"\e[\C-@": beginning-of-line
"\e[e": end-of-line
$if term=xterm
#
# Application keypad and cursor of xterm
# with NumLock ON
#
# Operators
"\eOo": "/"
"\eOj": "*"
"\eOm": "-"
"\eOk": "+"
"\eOl": "+"
"\eOM": accept-line
# Colon and dot
# "\eOl": ","
"\eOn": "."
# Numbers
"\eOp": "0"
"\eOq": "1"
"\eOr": "2"
"\eOs": "3"
"\eOt": "4"
"\eOu": "5"
"\eOv": "6"
"\eOw": "7"
"\eOx": "8"
"\eOy": "9"
$endif
#
# Application keypad and cursor of xterm
#
"\eOD": backward-char
"\eOC": forward-char
#"\eOA": previous-history
#"\eOB": next-history
"\eOE": re-read-init-file
"\e[D": backward-char
"\e[C": forward-char
#"[5~": history-search-backward
#"[6~": history-search-forward
"\e[A": history-search-backward
"\e[B": history-search-forward
"\eOA": history-search-backward
"\eOB": history-search-forward
#"\C-p": history-search-backward
#"\C-n": history-search-forward
"\C-k": kill-line
"\C-u": kill-whole-line
"\C-w": kill-region-line
"\e\e[D": backward-word
"\e\e[C": forward-word
"\e\eOD": backward-word
"\e\eOC": forward-word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment