From 96ee3e3df7f87146b71ee46e9178e556ea5c7ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Aranda=20Hern=C3=A1ndez?= Date: Thu, 22 Aug 2019 17:00:42 -0500 Subject: [PATCH] Added an example --- README.markdown | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.markdown b/README.markdown index 448d2d6..ced682c 100644 --- a/README.markdown +++ b/README.markdown @@ -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("\MyWonderfulMap", v:count) + +## Example + +This mapping: + +``` +nmap cp xp +``` + +Has the same effect than this: + +``` +nmap TransposeCharacters xp +nmap cp TransposeCharacters +``` + +To make it repeatable do this: + +``` +nmap TransposeCharacters xp +nmap cp TransposeCharacters +silent! call repeat#set("\TransposeCharacters", v:count) +``` + ## Installation