-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
rsi.txt
80 lines (56 loc) · 3.17 KB
/
rsi.txt
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
77
78
79
80
*rsi.txt* Readline style insertion
Author: Tim Pope <http://tpo.pe/>
License: Same terms as Vim itself (see |license|)
This plugin is only available if 'compatible' is not set.
INTRODUCTION *rsi*
This plugin provides Readline (Emacs) mappings for insert and command line
mode that try not to overlap with built-in Vim functionality.
MAPS *rsi-maps*
*rsi-CTRL-A*
<C-a> Go to beginning of line.
*rsi-CTRL-X_CTRL-A*
<C-x><C-a> Access Vim's built-in |i_CTRL-A| or |c_CTRL-A|.
*rsi-CTRL-B*
<C-b> Go backwards one character. On a blank line, kill it
and go back to the previous line.
*rsi-CTRL-D*
<C-d> Delete character in front of cursor. Falls back to
|i_CTRL-D| or |c_CTRL-D| at the end of the line.
*rsi-CTRL-E*
<C-e> Go to end of line. Falls back to |i_CTRL-E| if
already at the end of the line. (|c_CTRL-E| already
goes to end of line, so it is not mapped.)
*rsi-CTRL-F*
<C-f> Move forward one character. Falls back to
|i_CTRL-F| or |c_CTRL-F| at the end of the line.
*rsi-CTRL-G*
<C-g> Removed, as it conflicts with |c_CTRL-G|.
*rsi-CTRL-T*
<C-t> Transpose two characters. This is mapped in command
line mode only, as |i_CTRL-T| is too important to
clobber.
*rsi-META-BS*
<M-BS> Delete backward one word.
*rsi-META-b*
<M-b> Go backwards one word.
*rsi-META-d*
<M-d> Delete forwards one word.
*rsi-META-f*
<M-f> Go forwards one word.
*rsi-META-n*
<M-n> Equivalent to |c_<Down>| or |i_<Down>|.
*rsi-META-p*
<M-p> Equivalent to |c_<Up>| or |i_<Up>|.
In the terminal, the meta key sends escape, so mapping these would require
mappings starting with escape in insert mode. This makes Vim appear to lag
for a second if you actually press just escape. Instead, rsi.vim makes
these available by telling Vim they are existing special keys. For example,
the key code for <S-Left> is changed to <Esc>b.
To disable meta maps, add the following to your vimrc:
>
let g:rsi_no_meta = 1
<
ABOUT *rsi-about*
Grab the latest version or report a bug on GitHub:
http://github.com/tpope/vim-rsi
vim:tw=78:et:ft=help:norl: