【问题标题】:Is there any way to indent wordwrapping acording to syntax in Vim? [duplicate]有没有办法根据 Vim 中的语法缩进自动换行? [复制]
【发布时间】:2010-01-26 19:52:56
【问题描述】:

可能重复:
Smart Wrap in Vim

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

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

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

这可能吗(除了手动)?

【问题讨论】:

标签: html vim word-wrap


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    基本上你可以更接近,但是使用内置功能你不能让它自动匹配任意

  • 级别。
  • 【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-27
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-06
      • 1970-01-01
      相关资源
      最近更新 更多