-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
By reading the README it was not clear to me how to use this plugin. Using this screencast (http://vimcasts.org/episodes/creating-repeatable-mappings-with-repeat-vim/) I managed to figure out how it works. Here is a concrete example, I think it would be a good idea to add it (or something similar) to the README:
before
nnoremap <Leader>' viw<esc>a'<esc>hbi'<esc>lel
It surrounds the current word (manual solution).
after
nnoremap <silent> <Plug>SurroundWordWithApostrophe viw<esc>a'<esc>hbi'<esc>lel
\ :call repeat#set("\<Plug>SurroundWordWithApostrophe", v:count)<cr>
nmap <Leader>' <Plug>SurroundWordWithApostrophe
Now it's repeatable with the "." command.
gurdiga, EgZvor, sudo-nice, ethagnawl, grepsuzette and 18 moreaaronamm, rockyzhang24, asdf8601 and Goli4thus
Metadata
Metadata
Assignees
Labels
No labels