forked from majnemer/davesdots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
154 lines (152 loc) · 3.29 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Be 8 bit clean. (EXPERIMENTAL: if problems occur, contact me)
set input-meta on
set output-meta on
set convert-meta on
# Turn off that bell
set bell-style none
$if mode=emacs
$if term=screen
"\e[H": beginning-of-line
"\e[F": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[3~": delete-char
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\eOC": forward-word
"\eOD": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[c": forward-word
"\e[d": backward-word
$endif
$if term=xterm
"\e[H": beginning-of-line
"\e[F": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[3~": delete-char
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\eOC": forward-word
"\eOD": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[c": forward-word
"\e[d": backward-word
$endif
$if term=putty
"\e[H": beginning-of-line
"\e[F": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[3~": delete-char
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\eOC": forward-word
"\eOD": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[c": forward-word
"\e[d": backward-word
$endif
$if term=mlterm
"\e[H": beginning-of-line
"\e[F": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[3~": delete-char
$endif
$if term=kterm
"\e[H": beginning-of-line
"\e[F": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[3~": delete-char
$endif
$if term=linux
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
$endif
$if term=vt100
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
$endif
$if term=rxvt
"\e[c": forward-word
"\e[d": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[3~": delete-char
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=Eterm
"\e[c": forward-word
"\e[d": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[3~": delete-char
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=aterm
"\e[c": forward-word
"\e[d": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[3~": delete-char
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=mrxvt
"\e[c": forward-word
"\e[d": backward-word
"\eOc": forward-word
"\eOd": backward-word
"\e[3~": delete-char
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=cons
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif
$if term=interix
"\e[H": beginning-of-line
"\e[U": end-of-line
$endif
$if term=sun
"\e[214z": beginning-of-line
"\e[220z": end-of-line
"^?": delete-char
$endif
$if term=cygwin
"\e[1~": beginning-of-line
"\e[4~": end-of-line
$endif
$endif