如何用< code>包围两个单词在vim中添加标签,以便可以使用点运算符重复该操作? [英] How do I surround two words with <code> tag in vim, such that I can repeat the operation with a dot operator?
本文介绍了如何用< code>包围两个单词在vim中添加标签,以便可以使用点运算符重复该操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用vim-surround插件和此HTML(其中*是我的光标):
I'm working with the vim-surround plugin and this HTML (where the * is my cursor):
<li class="sample" style="border-color: #005462;">*#005462</li>
我想在#005462周围加上<code>
,所以它看起来像这样,<code>#005462</code>
.我可以在可视模式下执行此操作,但想做点重复的操作.有什么建议吗?
I'd like to surround the #005462 with <code>
so it looks like this, <code>#005462</code>
. I can do this with visual mode but would like to do something I can repeat with the dot operator. Any advice?
推荐答案
您要 repeat.vim ,它为包括环绕声在内的其他几个插件添加了.
支持.
You want repeat.vim which adds .
support to several other plugins, including surround.
这篇关于如何用< code>包围两个单词在vim中添加标签,以便可以使用点运算符重复该操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文