Vim zencoding - 标记视线

发布于 2024-12-28 02:20:46 字数 407 浏览 2 评论 0原文

我想非常简单,但我无法从 vim 中的 zencoding 中得到我认为正确的行为。

所以我正在做的是。

1) selecting using visual a who line. 
2) Using <C-e> (rebound) to use zencoding.
3) supply the tags to apply and enter.

发生的情况是说 using h2 与 all 一起发生。

<h2>
 My text
</h2>

不过我想要这样的。

<h2>My Text</h2>

我怎样才能得到它呢?

Very simple I guess but I cannot get what I perceive to be the correct behavior out of zencoding in vim.

So what I am doing is.

1) selecting using visual a who line. 
2) Using <C-e> (rebound) to use zencoding.
3) supply the tags to apply and enter.

What happens is saying using h2 occurs with all.

<h2>
 My text
</h2>

However I want it like.

<h2>My Text</h2>

How can I get it like that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迟月 2025-01-04 02:20:46

回答如果使用 V (shift+v) zencoding 在 vi​​m 中选择一行完成块编码,那么“某些文本”就变成:

<h1>
  some text
</h1>

其中使用单数 v 然后使用 h,j,k,l 手动选择文本,结果是内联的:

<h1>some text</h1>

如果有人有任何其他巧妙的技巧请告诉我。

Answer if selecting a line in vim with V (shift+v) zencoding completes a block encoding so "some text" becomes:

<h1>
  some text
</h1>

where as using the singular v and then manually selecting text using h,j,k,l the result is inline:

<h1>some text</h1>

If anyone has any other neat tricks let me know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文