刚安装了surround.vim插件,并且某些命令无法按预期工作。我使用this question为例某些Surround.vim命令不起作用
This is a lo*ng line and I want to highlight two words
一个ys2aw"
应上述更改为
This is a "long line" and I want to highlight two words
但对我来说它改变
This is a g and I want to highlight two words
其他时候,它并不会影响在所有!我认为这与被抽取的注册表中的内容有关。
当我打字ys
,在右下方我可以看到,它迅速变成[email protected]
最后,我敢肯定没有其他插件干扰是通过发出verbose map yss
命令:
n yss <Plug>Yssurround
Last set from ~/.vim/plugin/surround.vim
n ys <Plug>Ysurround
Last set from ~/.vim/plugin/surround.vim
有人知道这里出了什么问题吗?
对不起,我不能重现错误此期望的行为。你的光标在哪里?在“o”或“n”上? – romainl
@romainl我刚刚尝试过“o”。如果我把它放到vim中,通过“o”并发出命令“ys2aw”'我得到:'这是一个“这是一个”长线“,我想突出两个单词”,我想突出显示两个字 ' – puk
@romainl如果我撤消并再次发出该命令,我会得到相同的行为,但在粘贴的内部引号之前和之后都有一个新行,如果我再次撤销并重做,则没有任何内容会改变(尽管文件被列为正在修改) – puk