-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
60 lines (50 loc) · 1.52 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
# ~/.inputrc personal config file for readline
### Completion
# shrink completion prefixes > number
set completion-prefix-display-length 15
# ask whether to display if >= matches
set completion-query-items 60
# if 'off' require explicit '.' to complete hidden files
set match-hidden-files off
# want it alphabetical if in a pager
set print-completions-horizontally on
# single tab for completion list
set show-all-if-ambiguous on
# if completeing in middle, don't duplicate matching text after cursor
set skip-completed-text on
### Expansion
# FIXME: if 'on' duplicates cd completion in ${HOME}
#set expand-tilde off
### Display
# prefix prompt with mode if on
set show-mode-in-prompt off
set vi-ins-mode-string "+"
set vi-cmd-mode-string ":"
### Movement / Editing
# attempt to preserve cursor position when navigating history
set history-preserve-point on
# vi editing mode
set editing-mode vi
#set keyseq-timeout 500
set enable-bracketed-paste on
# Vi bindings
set keymap vi-command
"\C-r": vi-redo
",rc": re-read-init-file
"gg": beginning-of-history
G: end-of-history
K: history-search-backward
J: history-search-forward
",xl": alias-expand-line
",xh": history-expand-line
",xs": shell-expand-line
# ",xb": brace-expand-line # doesn't exist?
# ",xa": all-expand-line # doesn't exist?
"!a": yank-nth-arg
"!$": yank-last-arg
# let bracketed paste work in command mode
"\e[200~": bracketed-paste-begin
# fix broken bracketed paste in insert mode
"200": vi-append-mode
set keymap vi-insert
"\C-r": re-read-init-file