-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc.symdot
51 lines (48 loc) · 1.31 KB
/
inputrc.symdot
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
# Use Vi, not Emacs, style editing
set editing-mode vi
# Show all completions as soon as I press tab, even if there's more than one
set show-all-if-ambiguous on
# First prefix then tab to cycle
set menu-complete-display-prefix on
# prompt when completing more than 80
set completion-query-items 80
# Never ring bell
set bell-style none
# Ignore case while completeing things
set completion-ignore-case on
# Don't append / to directories
set skip-completed-text on
# Add slash to symlinked directories
set mark-symlinked-directories on
# Different colors for different types of stats
set colored-stats on
# Don't expand ~
set expand-tilde off
# Make cursor be on same point on lines
set history-preserve-point on
# Show command mode vs insert mode
# set show-mode-in-prompt on
set keymap vi-command
# Insert the arguments from the last command
"y": vi-yank-to
"p": vi-put
"\C-j": history-search-forward
"\C-k": history-search-backward
$if bash
"\C-f": edit-and-execute-command
$endif
set keymap vi-insert
# Completion for tab and tab backwards
TAB: menu-complete
"\e[Z": menu-complete-backward
# Fix broken keys
"y": self-insert
"p": self-insert
"v": self-insert
# Make C-w work better
"\C-j": history-search-forward
"\C-k": history-search-backward
$if bash
"\C-w": unix-filename-rubout
"\C-f": edit-and-execute-command
$endif