简体   繁体   English

告诉 vim 在使用 gqq 时不要破坏某些元素

[英]Tell vim not to break certain elements when using gqq

I have the following line of HTML:我有以下 HTML 行:

<p>I don't really <em>collect</em> games, exactly. I'm all for emulating games and am not against buying them digitally. I also <a href="http://www.proxima64.org/articles/articles/retrogaming.html" target="_blank">disavow the PVM meme</a>. Still, I was willing to spend the money for the chance to re-experience some of my old favorites.</p>

I like to shorten long lines of HTML with gqq .我喜欢用gqq缩短 HTML 的长行。 When I use gqq I get this:当我使用gqq我得到这个:

<p>I don't really <em>collect</em> games, exactly. I'm all for emulating games
and am not against buying them digitally. I also <a
href="http://www.proxima64.org/articles/articles/retrogaming.html"
target="_blank">disavow the PVM meme</a>. Still, I was willing to spend the
money for the chance to re-experience some of my old favorites.</p>

But I would like for it to not break anything inside <> , so that I get something that looks like this:但我希望它不会破坏<>内部的任何东西,这样我就会得到如下所示的东西:

<p>I don't really <em>collect</em> games, exactly. I'm all for emulating games
and am not against buying them digitally. I also
<a href="http://www.proxima64.org/articles/articles/retrogaming.html" target="_blank">disavow
the PVM meme</a>. Still, I was willing to spend the money for the chance to
re-experience some of my old favorites.</p>

Is there a way to do this?有没有办法做到这一点?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM