-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
34 lines (29 loc) · 826 Bytes
/
.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
# Vim mode - enable it and define different strings for insert and command mode
set editing-mode vi
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
# Decrease delay time in key sequences (useful for Esc)
set keyseq-timeout 100
# If vim mode active, remap:
# - ctrl-l to clear display
# - j and k to move in history (cmd mode only)
# - 'kj' to escape insert mode
$if mode=vi
set keymap vi-command
"\C-l": clear-display
k: history-search-backward
j: history-search-forward
set keymap vi-insert
"\C-l": clear-display
"kj": "\e"
$endif
# History movement with arrow keys
"\e[A": history-search-backward
"\e[B": history-search-forward
# Colors
set colored-stats on
set colored-completion-prefix on
# Completion settings
set show-all-if-ambiguous on
set completion-ignore-case on