-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinputrc
More file actions
59 lines (46 loc) · 1.73 KB
/
Copy pathinputrc
File metadata and controls
59 lines (46 loc) · 1.73 KB
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
# ~/.inputrc - local inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
set editing-mode vi
set show-mode-in-prompt on
# '\1' and '\2' used to begin and end sequences of non-printing characters
set vi-ins-mode-string "[\1\e[0;31m\2i\1\e[0m\2] "
set vi-cmd-mode-string "[\1\e[0;32m\2c\1\e[0m\2] "
set bell-style none
set completion-ignore-case on
set show-all-if-ambiguous on
#set show-all-if-unmodified on
set expand-tilde off
set match-hidden-files off
# append slash to tab-completed directory symlinks
set mark-symlinked-directories on
# vi insert mode bindings {{{
set keymap vi-insert
# `esc-i` -> toggle editing mode
# useful for gdb, e.g. `ctrl-x ctrl-a` and `ctrl-x 2` binds only available in emacs mode
"\ei": emacs-editing-mode
# use jk to exit insert mode
"jk": vi-movement-mode
# override default binding of unix-word-rubout so that '/' is also used as a
# delimiter; bind-tty-special-chars must be off
set bind-tty-special-chars off
"\C-w": unix-filename-rubout
# set tab to cycle through auto-complete suggestions instead of listing them;
# must be placed after setting vi editing-mode
"\C-i": menu-complete
# set alternative keys for tab completion
"\C-n": menu-complete
"\C-p": menu-complete-backward
# search history for string up to cursor position
"\C-j": history-search-forward
"\C-k": history-search-backward
# only works in command mode by default
"\C-l": clear-screen
# vi insert mode bindings }}}
# vi normal mode bindings {{{
set keymap vi-command
"\ei": emacs-editing-mode
# vi normal mode bindings }}}
# emacs mode bindings {{{
set keymap emacs
"\ei": vi-editing-mode
# emacs mode bindings }}}