vimrepeatsurround

Repeating surround with "." command in VIM


Did anybody get surround.vim to work with repeat.vim?

This should enable you to repeat any command provided by the surround plugin with the . command.

I think surround.vim should already have built-in support for the repeat plugin, so it should work out of the box, but I can't get it to work.


Solution

  • I just put surround.vim and repeat.vim in my .vim/plugins folder and tried it out. For me, it works like described.

    May you try the repeat command on a function that is not supported. In the docs of surround.vim it says

     The "." command will work with ds, cs, and yss if you install repeat.vim
    

    It does not say that all commands work with repeat.vim. E.g. the visual mode stuff (select multiple lines and surround them) does not work with repeat.vim