-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
51 lines (47 loc) · 1.23 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
$include /etc/inputrc
set bell-style visible
set blink-matching-paren on
set completion-query-items 200
set colored-stats on
set visible-stats on
set colored-completion-prefix on
set menu-complete-display-prefix on
set mark-symlinked-directories on
set page-completions off
set show-all-if-ambiguous on
set show-all-if-unmodified on
set skip-completed-text on
set keyseq-timeout 350
set editing-mode vi
set show-mode-in-prompt on
#Set cursor shape and background colors depending on vi mode
#\e[cursorshapeblock\e[reset;dim;BGcolorBlack
#\e[cursorshapeline\e[reset;BGcolorDefault
$if term=linux
set vi-ins-mode-string \1\e[?0c\e[0;49m\2-
set vi-cmd-mode-string \1\e[?8c\e[0;2;40m\2+
$else
set vi-ins-mode-string \1\e[5 q\e[0;49m\2-
set vi-cmd-mode-string \1\e[1 q\e[0;2;3m\2+
$endif
$if mode=vi
set keymap vi-command
"\e[A":history-search-backward
"\e[B":history-search-forward
j:history-search-forward
k:history-search-backward
" s":"Isudo jkA"
" l":"A| less"
" dm":dump-macros
" df":dump-functions
" dv":dump-variables
" r":re-read-init-file
set keymap vi-insert
Tab:menu-complete
"\e[Z":menu-complete-backward
"\e[A":history-search-backward
"\e[B":history-search-forward
Control-l:clear-screen
"jk":vi-movement-mode
"kj":vi-movement-mode
$endif