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