/
easymotion.txt
148 lines (100 loc) · 5.85 KB
/
easymotion.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
*easymotion.txt* Version 1.0.5. Last change: 2011 Mar 28
______ __ ___ __ _
/ ____/____ ________ __/ |/ /____ / /_(_)____ ____
/ __/ / __ `/ ___/ / / / /|_/ // __ \/ __/ // __ \/ __ \
/ /___ / /_/ (__ ) /_/ / / / // /_/ / /_/ // /_/ / / / /
/_____/ \__,_/____/\__, /_/ /_/ \____/\__/_/ \____/_/ /_/
/____/
- Vim motions on speed!
==============================================================================
CONTENTS *easymotion-contents*
1. Introduction ....................... |easymotion-introduction|
2. Usage .............................. |easymotion-usage|
3. Requirements ....................... |easymotion-requirements|
4. Configuration ...................... |easymotion-configuration|
4.1 EasyMotion_keys ................ |EasyMotion_keys|
4.2 EasyMotion_target_hl ........... |EasyMotion_target_hl|
4.3 EasyMotion_shade_hl ............ |EasyMotion_shade_hl|
4.4 EasyMotion_do_shade ............ |EasyMotion_do_shade|
4.5 EasyMotion_do_mapping .......... |EasyMotion_do_mapping|
5. License ............................ |easymotion-license|
6. Known bugs ......................... |easymotion-known-bugs|
7. Contributing ....................... |easymotion-contributing|
8. Credits ............................ |easymotion-credits|
==============================================================================
1. Introduction *easymotion* *easymotion-introduction*
EasyMotion provides a much simpler way to use some motions in vim. It takes
the <number> out of <number>w or <number>f{char} by highlighting all possible
choices and allowing you to press one key to jump directly to the target.
When one of the available motions is triggered, all visible text preceding or
following the cursor is faded, and motion targets are highlighted.
==============================================================================
2. Usage *easymotion-usage*
EasyMotion is triggered manually or by one of the provided mappings (see
|EasyMotion_do_mapping|).
Example: >
<cursor>Lorem ipsum dolor sit amet.
If the word motion |w| is triggered with the default mapping <Leader>w, the
text is updated (no braces are actually added, the letters are highlighted in
red by default): >
<cursor>Lorem {a}psum {b}olor {c}it {d}met.
Press 'c' to jump to the beginning of the word "sit": >
Lorem ipsum dolor <cursor>sit amet.
And that's it!
==============================================================================
3. Requirements *easymotion-requirements*
EasyMotion is tested in vim 7.3, but should run fine in vim 7.2. Vi-compatible
mode must be disabled.
==============================================================================
4. Configuration *easymotion-configuration*
------------------------------------------------------------------------------
4.1 EasyMotion_keys *EasyMotion_keys*
You can choose the characters which will be used for jump targets. If you want
to use numbers or symbols instead of the default value, set the variable like
this: >
let g:EasyMotion_keys = '1234567890&[{}(=*)+]'
Default: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
------------------------------------------------------------------------------
4.2 EasyMotion_target_hl *EasyMotion_target_hl*
Set the highlighting group for jump targets.
Default: 'EasyMotionTarget'
------------------------------------------------------------------------------
4.3 EasyMotion_shade_hl *EasyMotion_shade_hl*
Set the highlighting group for shaded text.
Default: 'EasyMotionShade'
------------------------------------------------------------------------------
4.4 EasyMotion_do_shade *EasyMotion_do_shade*
Set this to 0 if you want to disable text shading.
Default: 1
------------------------------------------------------------------------------
4.5 EasyMotion_do_mapping *EasyMotion_do_mapping*
Set this to 0 if you want to disable the default mappings. The default
configuration provides the following mappings:
Mapping Details
--------------------------
<Leader>f{char} See |f|
<Leader>F{char} See |F|
<Leader>t{char} See |t|
<Leader>T{char} See |T|
<Leader>w See |w|
<Leader>e See |e|
<Leader>b See |b|
==============================================================================
5. License *easymotion-license*
Creative Commons Attribution-ShareAlike 3.0 Unported
http://creativecommons.org/licenses/by-sa/3.0/
==============================================================================
6. Known bugs *easymotion-known-bugs*
None.
==============================================================================
7. Contributing *easymotion-contributing*
If you experience any bugs or have feature requests, open an issue on GitHub.
Fork me on GitHub and send a pull request if you have any code improvements.
Source repository: https://github.com/Lokaltog/EasyMotion
==============================================================================
8. Credits *easymotion-credits*
EasyMotion is based on Bartlomiej Podolak's great PreciseJump script, which
can be downloaded here:
http://www.vim.org/scripts/script.php?script_id=3437
==============================================================================
vim:tw=78:sw=4:ts=8:ft=help:norl: