@@ -244,24 +244,21 @@ Flag.Translate({value}) *Flag.Translate()*
244
244
running {value} through all registered translators).
245
245
246
246
*maktaba.KeyMapping*
247
- A maktaba representation of a vim key mapping, which is used to configure and
248
- unmap it from vim.
249
-
250
- KeyMapping.Unmap() *KeyMapping.Unmap()*
251
- Unmaps the mapping in vim. Returns 1 if mapping was found and unmapped, 0 if
252
- mapping was gone already.
247
+ A maktaba representation of a Vim key mapping, which is used to configure and
248
+ unmap it from Vim.
253
249
254
250
KeyMapping.IsMapped() *KeyMapping.IsMapped()*
255
251
Returns 1 if the mapping is still defined, 0 otherwise
256
252
257
- Caveat: This detection can currently false positive if the original mapping
258
- was unmapped but then another similar one mapped afterwards.
253
+ KeyMapping.Unmap() *KeyMapping.Unmap()*
254
+ Unmaps the mapping in Vim. Returns 1 if mapping was found and unmapped, 0 if
255
+ mapping was gone already.
259
256
260
257
KeyMapping.GetSpec() *KeyMapping.GetSpec()*
261
258
Return a copy of the spec used to issue this mapping.
262
259
263
260
*maktaba.KeyMappingSpec*
264
- A spec for a key mapping that can be mapped in vim with
261
+ A spec for a key mapping that can be mapped in Vim with
265
262
| KeyMappingSpec.Map() | .
266
263
267
264
KeyMappingSpec.WithArgs({args} , [overwrite] ) *KeyMappingSpec.WithArgs()*
@@ -276,23 +273,24 @@ KeyMappingSpec.WithRemap({enabled}) *KeyMappingSpec.WithRemap()*
276
273
Throws ERROR(WrongType)
277
274
278
275
KeyMappingSpec.Map() *KeyMappingSpec.Map()*
276
+ Define a Vim mapping from spec via the | :map | commands.
279
277
280
278
KeyMappingSpec.MapOnce() *KeyMappingSpec.MapOnce()*
281
- Define a buffer-local one-shot vim mapping from spec that will only trigger
279
+ Define a buffer-local one-shot Vim mapping from spec that will only trigger
282
280
once and then unmap itself.
283
281
284
282
Not supported for recursive mappings.
285
283
Throws ERROR(NotImplemented) if used with `WithRemap (1 )`
286
284
287
285
KeyMappingSpec.MapOnceWithTimeout() *KeyMappingSpec.MapOnceWithTimeout()*
288
- Define a short-lived vim mapping from spec that will only trigger once and
286
+ Define a short-lived Vim mapping from spec that will only trigger once and
289
287
will also expire if 'timeoutlen' duration expires with 'timeout' setting
290
288
active.
291
289
292
290
This is useful to detect if the user presses a key immediately after
293
291
something else happens, and respond with a particular behavior.
294
292
295
- It can also be used for an improved version of vim 's | map-ambiguous |
293
+ It can also be used for an improved version of Vim 's | map-ambiguous |
296
294
behavior when one mapping is a prefix of another. You can create a prefix
297
295
mapping that does one thing immediately and then a different follow-up
298
296
behavior on another keystroke.
@@ -304,7 +302,7 @@ KeyMappingSpec.MapOnceWithTimeout() *KeyMappingSpec.MapOnceWithTimeout()*
304
302
\.WithArgs(['<buffer>']).MapOnceWithTimeout()<CR>
305
303
<
306
304
307
- Caveat: Unlike vim 's | map-ambiguous | behavior, this currently doesn't stop
305
+ Caveat: Unlike Vim 's | map-ambiguous | behavior, this currently doesn't stop
308
306
waiting for keypresses if another unrelated key is pressed while it's
309
307
waiting. Caveat: For long mappings, you might notice that the timeout is
310
308
currently for the entire mapping and not for each keystroke. If you need to
@@ -1246,22 +1244,22 @@ maktaba#json#python#IsDisabled() *maktaba#json#python#IsDisabled()*
1246
1244
disabled, and prevents further changes.
1247
1245
1248
1246
maktaba#keymapping#Map({lhs} , {rhs} , [mode] ) *maktaba#keymapping#Map()*
1249
- Set up a key mapping in vim , mapping key sequence {lhs} to replacement
1247
+ Set up a key mapping in Vim , mapping key sequence {lhs} to replacement
1250
1248
sequence {rhs} in the given [mode] . This is a convenience wrapper for
1251
- | maktaba#keymapping#Spec() | and its | KeyMappingSpec.Map | that supports the
1249
+ | maktaba#keymapping#Spec() | and its | KeyMappingSpec.Map() | that supports the
1252
1250
basic mapping options. It is equivalent to calling:
1253
1251
>
1254
1252
:call maktaba#keymapping#Spec({lhs}, {rhs}, [mode]).Map()
1255
1253
<
1256
1254
1257
1255
See those functions for usage and behavior details.
1258
1256
1259
- [mode] is all of 'n', 'v', and 'o' (vim 's default) if omitted.
1257
+ [mode] is all of 'n', 'v', and 'o' (Vim 's default) if omitted.
1260
1258
1261
1259
maktaba#keymappingspec#Spec({lhs} , {rhs} , [mode] )
1262
1260
*maktaba#keymappingspec#Spec()*
1263
1261
Create a | maktaba.KeyMappingSpec | that can be configured with options and
1264
- then mapped in vim with | KeyMappingSpec.Map() | . The eventual mapping will
1262
+ then mapped in Vim with | KeyMappingSpec.Map() | . The eventual mapping will
1265
1263
map {lhs} to {rhs} in the given [mode] .
1266
1264
1267
1265
Initialized with recursive mappings disallowed by default (see | :noremap | ).
@@ -1270,7 +1268,7 @@ maktaba#keymappingspec#Spec({lhs}, {rhs}, [mode])
1270
1268
Arguments will be configured with | map-<unique> | by default. Use the
1271
1269
"overwrite" option of `.WithArgs(…, 1)` if you want to map without <unique> .
1272
1270
1273
- [mode] is all of 'n', 'v', and 'o' (vim 's default) if omitted.
1271
+ [mode] is all of 'n', 'v', and 'o' (Vim 's default) if omitted.
1274
1272
1275
1273
maktaba#library#Import({library} ) *maktaba#library#Import()*
1276
1274
Imports {library} .
0 commit comments