如何在VSVIM中进行反向选择?
我想在VS2022中的VSVIM中逆转选定的文本。
例如:asdfg
to gfdsa
我尝试过反向选定的文本和此解决方案。 但是这些措施使我的选择取代了c
。如果首先在视觉上删除文本,然后键入:设置Revins
,我将获得一个错误:不允许范围
。
有什么整洁的方法可以逆转选择吗?
I want to reverse selected text in VsVim in VS2022.
For instance: asdfg
to gfdsa
I have tried Reverse selected text and this solution.
But these measures made my selection replaced by c
. If I secelct the text visually first, and type :set revins
, I will get an error: No range allowed
.
Is there any neat way to reverse selection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不使用VIM。您正在使用VIM的部分重新实施,因此没有任何理由期望在VIM中有效的任何功能在该扩展中起作用。
例子,VSVIM不支持
Revins
选项,因此即使尝试依赖它的随机Internet解决方案也没有意义。此外,VSVIM不支持VimScript,因此仅使用VIM的解决方案,例如:对您来说是无用的。
You are not using Vim. You are using a partial re-implementation of Vim so there is no reason whatsoever to expect anything that works in Vim to work the same in that extension.
Case in point, VsVim doesn't support the
revins
option so there is no point in even trying random internet solutions that depend on it. Moreover, VsVim doesn't support vimscript either so a working Vim-only solution like:is useless to you.