summaryrefslogtreecommitdiff
path: root/inputrc-unix
blob: 0d430bea808742edb5d0444f0478d2480de63c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Map ALT-W to copy region (similar to emacs)
# To mark a region, use 'set-mark' (CTRL-Space or CTRL-@)
# To paste/yank, use CTRL-Y
"\ew":copy-region-as-kill

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word


# Home/End
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line