用“."重复环绕. VIM中的命令 [英] Repeating surround with "." command in VIM
问题描述
有人让 surround.vim 与 repeat.vim ?
这应该使您能够用."重复环绕声插件提供的任何命令.命令.
This should enable you to repeat any command provided by the surround plugin with the "." command.
我认为Surround.vim应该已经具有对重复插件的内置支持,因此它应该可以立即使用,但是我无法使其正常工作.
I think surround.vim should already have builtin support for the repeat plugin, so it should work out of the box but I can't get it to work.
推荐答案
我只是将Surround.vim和repeat.vim放在我的.vim/plugins文件夹中,并进行了尝试.对我来说,它就像描述的那样工作.
I just put surround.vim and repeat.vim in my .vim/plugins folder and tried it out. For me, it works like described.
可以在不支持 的功能上尝试repeat命令.在Surround.vim的文档中,它说
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
这并不是说 all 命令可以与repeat.vim一起使用.例如.视觉模式的东西(选择多条线并将它们包围)不能与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
这篇关于用“."重复环绕. VIM中的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!