Added an example

This commit is contained in:
Eduardo Aranda Hernández 2019-08-22 17:00:42 -05:00 committed by GitHub
parent ae361bea99
commit 96ee3e3df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,30 @@ Adding support to a plugin is generally as simple as the following
command at the end of your map functions.
silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
## Example
This mapping:
```
nmap cp xp
```
Has the same effect than this:
```
nmap <Plug>TransposeCharacters xp
nmap cp <Plug>TransposeCharacters
```
To make it repeatable do this:
```
nmap <Plug>TransposeCharacters xp
nmap cp <Plug>TransposeCharacters
silent! call repeat#set("\<Plug>TransposeCharacters", v:count)
```
## Installation