Vim - surround.vim - s键不起作用

时间:2012-01-08 09:31:37

标签: vim surround

当我通过v键选择一些代码并按s括起来并在括号中关闭时,我收到此错误:

 surround.vim Visual mode s has been remove in favor of S

如何恢复此功能?

2 个答案:

答案 0 :(得分:8)

只需将其映射回 S

vmap s S

答案 1 :(得分:1)

你做不到。您必须按照建议使用 v + S 。有关详细信息,请参阅this