1
- *easymotion.txt* Version 1.0.10 . Last change: 2011 Mar 30
1
+ *easymotion.txt* Version 1.0.11 . Last change: 2011 Mar 31
2
2
3
3
4
4
______ __ ___ __ _
@@ -15,6 +15,7 @@ CONTENTS *easymotion-contents*
15
15
16
16
1. Introduction ....................... | easymotion-introduction |
17
17
2. Usage .............................. | easymotion-usage |
18
+ 2.1 Default mappings ............... | easymotion-default-mappings |
18
19
3. Requirements ....................... | easymotion-requirements |
19
20
4. Configuration ...................... | easymotion-configuration |
20
21
4.1 EasyMotion_keys ................ | EasyMotion_keys |
@@ -40,25 +41,55 @@ following the cursor is faded, and motion targets are highlighted.
40
41
==============================================================================
41
42
2. Usage *easymotion-usage*
42
43
43
- EasyMotion is triggered manually or by one of the provided mappings (see
44
+ EasyMotion is triggered by one of the provided mappings (see
44
45
| EasyMotion_do_mapping | for details).
45
46
46
47
Example: >
47
48
48
- <cursor>Lorem ipsum dolor sit amet.
49
+ <cursor>Lorem ipsum dolor sit amet.
49
50
50
- If the word motion | w | is triggered with the default mapping <Leader> w, the
51
- text is updated like this (no braces are actually added , the letters are
52
- highlighted in red by default): >
51
+ Type <Leader> w to trigger the word motion | w | . See | mapleader | for details
52
+ about the leader key. When the motion is triggered , the text is updated (no
53
+ braces are actually added, the text is highlighted in red by default): >
53
54
54
- <cursor>Lorem {a}psum {b}olor {c}it {d}met.
55
+ <cursor>Lorem {a}psum {b}olor {c}it {d}met.
55
56
56
57
Press "c" to jump to the beginning of the word "sit": >
57
58
58
- Lorem ipsum dolor <cursor>sit amet.
59
+ Lorem ipsum dolor <cursor>sit amet.
60
+
61
+ Similarly, if you're looking for an "o", you can use the | f | motion.
62
+ Type <Leader> fo, and all "o" characters are highlighted: >
63
+
64
+ <cursor>L{a}rem ipsum d{b}l{c}r sit amet.
65
+
66
+ Press "b" to jump to the second "o": >
67
+
68
+ Lorem ipsum d<cursor>olor sit amet.
59
69
60
70
And that's it!
61
71
72
+ ------------------------------------------------------------------------------
73
+ 2.1 Default mappings *easymotion-default-mappings*
74
+
75
+ The default configuration provides the following mappings in both normal and
76
+ visual mode:
77
+
78
+ Mapping | Details
79
+ ------------------|----------------------------------------------
80
+ <Leader> f{char} | Find {char} to the right. See | f|.
81
+ <Leader> F{char} | Find {char} to the left. See | F|.
82
+ <Leader> t{char} | Till before the {char} to the right. See | t|.
83
+ <Leader> T{char} | Till after the {char} to the left. See | T|.
84
+ <Leader> w | Beginning of word forward. See | w|.
85
+ <Leader> b | Beginning of word backward. See | b|.
86
+ <Leader> e | End of word forward. See | e|.
87
+ <Leader> ge | End of word backward. See | ge| .
88
+ <Leader> j | Line downward. See | j|.
89
+ <Leader> k | Line upward. See | k|.
90
+
91
+ See | mapleader | for details about the leader key.
92
+
62
93
==============================================================================
63
94
3. Requirements *easymotion-requirements*
64
95
@@ -70,68 +101,68 @@ Vi-compatible mode must be disabled.
70
101
==============================================================================
71
102
4. Configuration *easymotion-configuration*
72
103
73
- Set the configuration variables globally in your vimrc file.
104
+ EasyMotion will work fine without any configuration, but you can override the
105
+ default behavior by setting configuration variables globally in your | vimrc |
106
+ file.
74
107
75
- Example: >
108
+ Example (this will change the target keys and disable shading) : >
76
109
77
- let g:EasyMotion_keys = '1234567890'
78
- let g:EasyMotion_do_shade = 0
110
+ let g:EasyMotion_keys = '1234567890'
111
+ let g:EasyMotion_do_shade = 0
79
112
80
113
------------------------------------------------------------------------------
81
114
4.1 EasyMotion_keys *EasyMotion_keys*
82
115
83
116
Set the keys which will be used for motion targets. Add as many keys as you
84
- want. There's a lower chance that the motion targets will be grouped with many
85
- keys available.
117
+ want. There's a lower chance that the motion targets will be grouped if many
118
+ keys are available.
86
119
87
120
Default: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
88
121
89
122
------------------------------------------------------------------------------
90
123
4.2 EasyMotion_target_hl *EasyMotion_target_hl*
91
124
92
- Set the highlighting group for motion targets.
125
+ Set the highlighting group for motion targets. You can override the default
126
+ target highlighting by either changing this variable to another highlighting
127
+ group (e.g. | ErrorMsg | ), or by using | hi | to override the default syntax
128
+ colors: >
129
+
130
+ hi EasyMotionTarget ctermfg=green ctermbg=black cterm=reverse
93
131
94
132
Default: 'EasyMotionTarget'
95
133
96
134
------------------------------------------------------------------------------
97
135
4.3 EasyMotion_shade_hl *EasyMotion_shade_hl*
98
136
99
- Set the highlighting group for shaded text.
137
+ Set the highlighting group for shaded text (see | EasyMotion_do_shade | ). You
138
+ can override the default shade highlighting by either changing this variable
139
+ to another highlighting group, or by using | hi | to override the default syntax
140
+ colors: >
141
+
142
+ hi EasyMotionShade ctermfg=red ctermbg=black cterm=none
100
143
101
144
Default: 'EasyMotionShade'
102
145
103
146
------------------------------------------------------------------------------
104
147
4.4 EasyMotion_do_shade *EasyMotion_do_shade*
105
148
106
- Set this to 0 if you want to disable text shading.
149
+ The default behavior is to shade the text following the cursor (forward
150
+ motions) or preceding the cursor (backward motions) to make the motion targets
151
+ more visible. Set this option to 0 if you want to disable text shading.
107
152
108
153
Default: 1
109
154
110
155
------------------------------------------------------------------------------
111
156
4.5 EasyMotion_do_mapping *EasyMotion_do_mapping*
112
157
113
- Set this to 0 if you want to disable the default mappings. The default
114
- configuration provides the following mappings in both normal and visual
115
- mode:
116
-
117
- Mapping Details
118
- --------------------------
119
- <Leader> f{char} See | f |
120
- <Leader> F{char} See | F |
121
- <Leader> t{char} See | t |
122
- <Leader> T{char} See | T |
123
- <Leader> w See | w |
124
- <Leader> e See | e |
125
- <Leader> b See | b |
126
- <Leader> ge See | ge |
127
- <Leader> j See | j |
128
- <Leader> k See | k |
129
-
130
- Default: 1
158
+ Set this option to 0 if you want to disable the default mappings. See
159
+ | easymotion-default-mappings | for details about the default mappings.
131
160
132
161
Note: If you disable this option, you'll have to map the motions yourself. See
133
162
the plugin source code for mapping details.
134
163
164
+ Default: 1
165
+
135
166
==============================================================================
136
167
5. License *easymotion-license*
137
168
0 commit comments