Surround two words with quotes in Vim

自作多情 提交于 2019-12-03 05:56:35

Try: ys2w" (ys takes a motion or text object, and then the character with which you want to surround).

Press b first and then ys2w"

When using surround commands, I find the most logical solution is to sequence the "marking" and the "surrounding" operations.

Thus, with text objects, I use v2aw to visually mark the two words, then s" for the total of

v2aws"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!