Vim 有没有办法根据语法缩进换行?

发布于 2024-08-19 05:47:47 字数 466 浏览 5 评论 0原文

可能的重复:
Vim 中的智能换行

我希望自动换行适合我的 html 文件中的 4 个空格制表符宽度。

替代文本 http://img191.imageshack.us/img191/1883/27258431.png< /a>

我希望 Maecenas nisl quam 遵循 li 标签 的标识

这可能吗(除了手动操作之外)?

Possible Duplicate:
Smart Wrap in Vim

I want the wordwrapping to fit the 4 space tab width in my html file.

alt text http://img191.imageshack.us/img191/1883/27258431.png

I want the Maecenas nisl quam to follow the identation of the li tag

Is that possible (other than do it manually)?

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

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

发布评论

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

评论(2

摘星┃星的人 2024-08-26 05:47:47

有一个针对此问题的补丁,但它已经存在了几年,而且我上次检查时并没有完全应用。请参阅 http://groups.google.com/group/vim_dev/ 中的最后一个条目网络/vim-补丁
——我真的希望这能进入主线。

There is a patch for this, but it's been lingering for years and last time I checked did not apply cleanly. See last entry in http://groups.google.com/group/vim_dev/web/vim-patches
-- I really wish this would get in the mainline.

虚拟世界 2024-08-26 05:47:47

https://superuser.com/questions/72714/vim-line-wrap-with-indent< /a>

本质上你可以更接近,但是使用内置功能你不能让它自动匹配任意 <>力>等级。

https://superuser.com/questions/72714/vim-line-wrap-with-indent

Essentially you can get closer, but with the built-in functionality you can't make it automatically match the arbitrary < li > level.

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