vim-surround 对我不起作用.s 键删除而不是环绕 [英] vim-surround not working for me. s key deletes instead of surrounds

查看:21
本文介绍了vim-surround 对我不起作用.s 键删除而不是环绕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚安装了环绕插件.

新缓冲区,输入Hello World.假设我想用引号将其括起来.

New buffer, type Hello World. Say I want to surround that with quotes.

在普通模式下,V 进入可视模式,s 进入环绕

In normal mode, V to get into visual mode, s to get into surround

除非不是,否则 s 会删除整行.

Except it doesn't, s deletes the entire line.

推荐答案

surround.vim 的默认可视化模式映射是 Shift-S,而不是小写的 s.

The default visual mode mapping of surround.vim is Shift-S, not lowercase s.

您可以检查它是否使用:verbose vmap S 定义.其他的 around.vim 映射 (ys, cs, ...) 工作吗?如果没有,请检查 :scriptnames:set runtimepath? 以进行故障排除.

You can check whether it's defined with :verbose vmap S. Do the other surround.vim mappings (ys, cs, ...) work? If not, check :scriptnames and :set runtimepath? for troubleshooting.

这篇关于vim-surround 对我不起作用.s 键删除而不是环绕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆