-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
42 lines (37 loc) · 1.19 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
# FILE: ~/.inputrc
#
# In recent versions of gnome-terminal, you can use the following escape sequences to change the cursor:
#
#################### VIM ####################
# FOR MORE INFORMATION CHECK:
# https://wiki.archlinux.org/index.php/Readline
# TURN ON VIM (E.G. FOR READLINE)
set editing-mode vi
# SHOW THE VIM MODE IN THE PROMPT (COMMAND OR INSERT)
set show-mode-in-prompt on
# SET THE MODE STRING AND CURSOR TO INDICATE THE VIM MODE
# FOR THE NUMBER AFTER `\e[`:
# 0: blinking block
# 1: blinking block (default)
# 2: steady block
# 3: blinking underline
# 4: steady underline
# 5: blinking bar (xterm)
# 6: steady bar (xterm)
# With ins/nrm prefix
# set vi-ins-mode-string "\033[0;93mins\e[m \1\e[6 q\e]12;yellow\a\2"
# set vi-cmd-mode-string "\033[0;32mnrm\e[m \1\e[2 q\e]12;green\a\2"
# no prefix (shows up in logs)
set vi-ins-mode-string "\1\e[6 q\e]12;yellow\a\2"
set vi-cmd-mode-string "\1\e[2 q\e]12;green\a\2"
# To investigate:
# $if mode=vi
# set keymap vi-command
# Control-l: clear-screen
#
# set keymap vi-insert
# Control-l: clear-screen
# $endif
# set show-mode-in-prompt on
# "\e[A": history-search-backward
# "\e[B": history-search-forward