-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputrc
110 lines (104 loc) · 2.13 KB
/
inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Readline configuration
# include the system-wide defaults
$include /etc/inputrc
# general settings
set bell-style visible
set completion-ignore-case on
set horizontal-scroll-mode off
set mark-directories on
set prefer-visible-bell on
set show-all-if-ambiguous on
set visible-stats on
# emacs mode customizations
set keymap emacs
$if Bash
"\eb": vi-bWord
"\eB": vi-bword
"\ed": shell-kill-word
"\eD": shell-kill-word
"\ef": vi-fWord
"\eF": vi-fword
$else
"\eb": backward-word
"\eB": backward-word
"\ed": kill-word
"\eD": kill-word
"\ef": forward-word
"\eF": forward-word
$endif
"\en": history-search-forward
"\ep": history-search-backward
"\ew": copy-region-as-kill
"\e\C-?": unix-word-rubout
"\eOH": beginning-of-line
"\e[1~": beginning-of-line
"\eOF": end-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
"\e[A": history-search-backward
"\e[B": history-search-forward
# vi mode customizations
set keymap vi-insert
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-n": next-history
"\C-p": previous-history
"\C-r": reverse-search-history
"\C-s": forward-search-history
"\C-w": backward-kill-word
"\C-y": yank
$if Bash
"\eb": vi-bWord
"\eB": vi-bword
"\ed": shell-kill-word
"\eD": shell-kill-word
"\ef": vi-fWord
"\eF": vi-fword
$else
"\eb": backward-word
"\eB": backward-word
"\ed": kill-word
"\eD": kill-word
"\ef": forward-word
"\eF": forward-word
$endif
"\ey": yank-pop
"\eOH": beginning-of-line
"\e[1~": beginning-of-line
"\eOF": end-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
set keymap vi-command
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-n": next-history
"\C-p": previous-history
"\C-r": reverse-search-history
"\C-s": forward-search-history
"\C-w": backward-kill-word
"\C-y": yank
$if Bash
"\eb": vi-bWord
"\eB": vi-bword
"\ed": shell-kill-word
"\eD": shell-kill-word
"\ef": vi-fWord
"\eF": vi-fword
$else
"\eb": backward-word
"\eB": backward-word
"\ed": kill-word
"\eD": kill-word
"\ef": forward-word
"\eF": forward-word
$endif
"\ey": yank-pop
"\eOH": beginning-of-line
"\e[1~": beginning-of-line
"\eOF": end-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
"\e": vi-insertion-mode
# use emacs mode by default
set keymap emacs
set editing-mode emacs