-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
executable file
·76 lines (54 loc) · 1.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Shahzad's Input Configurations.
# Do tab complition on first tab.
set show-all-if-ambiguous on
# My selected editing mode.
set editing-mode vi
# =====[ Modifications for vi mode. ]===== {{{
$if mode=vi
# Show mode we are in (insert or normal(command) ).
set show-mode-in-prompt on
# Insert mode settings
set keymap vi-insert
# If want just a white indicator to show that we are in insert mode.
#set vi-ins-mode-string "+"
# If want a colored text to show that we are in insert mode.
set vi-ins-mode-string "\1\e[1;36m\2[INSERT] \1\e[0m\2"
"\C-x\C-r": re-read-init-file
"jj": vi-movement-mode
"\C-p": history-search-backward
"\C-n": history-search-forward
"\C-l": clear-screen
# Shortcut for inserting a grep pipeline at eol
"\C-g": "\e$a | grep "
# Ctrl+left/right for word movement
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# Disable left and right cursor movement
# "\e[C": redraw-current-line
# "\e[D": redraw-current-line
# Command mode settings
set keymap vi-command
# If want just a white indicator to show that we are in normal mode.
#set vi-cmd-mode-string ":"
# If want a colored text to show that we are in normal mode.
set vi-cmd-mode-string "\1\e[1;31m\2[NORMAL] \1\e[0m\2"
"gg": beginning-of-history
"G": end-of-history
# Shortcut for inserting a grep pipeline at eol
"\C-g": "$a | grep "
# Ctrl+left/right for word movement
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# Disable left and right cursor movement
# "\e[C": redraw-current-line
# "\e[D": redraw-current-line
$endif
# ======================================== }}}
# =====[ Emac mode modifications. ]===== {{{
#$if mode=emacs
#$endif
# ====================================== }}}