-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_inputrc
37 lines (32 loc) · 829 Bytes
/
dot_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
# vim: set filetype=readline foldmethod=marker :
set colored-completion-prefix on
set colored-stats on
set completion-ignore-case on
set completion-map-case on
set echo-control-characters off
set expand-tilde on
set mark-symlinked-directories on
set menu-complete-display-prefix on
set skip-completed-text on
set visible-stats on
# {{{ vi
set editing-mode vi
set show-mode-in-prompt on
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\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
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
# vi }}}