forked from NearHuscarl/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
60 lines (52 loc) · 1.43 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
# -- Use `showkey` command to get the binding hotkeys --
# ignore case when completing
set completion-ignore-case on
# only one tab for completion, even if there is more than one option
set show-all-if-ambiguous on
set menu-complete-display-prefix on
# how many possibilities before asking to show all
set completion-query-items 30
set visible-stats on
set expand-tilde off
set editing-mode vi
# show current mode when using with vi
set show-mode-in-prompt on
set vi-cmd-mode-string [n]
set vi-ins-mode-string [i]
$if mode=vi
set keymap vi-command
# some combination with alt not work in vi command mode
# press <C-v> + <A-key> to know if <A-key> works if mapped or not
"\ef": reverse-search-history
"\ej": history-search-forward
"\ek": history-search-backward
"\eu": vi-redo
"\er": re-read-init-file
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
"\ef": reverse-search-history
"\ei": vi-movement-mode
"\t": menu-complete
"\e[Z": menu-complete-backward
"\en": backward-word
"\em": forward-word
"\e,": beginning-of-line
"\e.": end-of-line
"\ej": history-search-forward
"\ek": history-search-backward
"\er": re-read-init-file
$else
"\e.": end-of-line
"\e,": beginning-of-line
"\e;": backward-word
"\e'": forward-word
"\ep": previous-history
"\en": next-history
"\ej": menu-complete
"\ek": menu-complete-backward
"\ey": yank-pop
"\eu": kill-whole-line
"\e9": backward-kill-word
"\e0": kill-word
$endif