V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
newbieooOO
V2EX  ›  问与答

Vim 如何优雅缩进页面内联 Javascript???

  •  
  •   newbieooOO · 2016-12-23 11:20:09 +08:00 · 1778 次点击
    这是一个创建于 2681 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如图,这问题好久了,有什么好的 Plugin 可以解决?

    期望的样子: https://ww2.sinaimg.cn/large/006y8lVagw1fb0k2h4m7yj30bc0j7gmu.jpg

    使用 gg=G 格式化后的样子: https://ww2.sinaimg.cn/large/006y8lVagw1fb0jmdy9hoj309q0is75a.jpg

    3 条回复    2016-12-23 14:14:37 +08:00
    newbieooOO
        1
    newbieooOO  
    OP
       2016-12-23 12:25:21 +08:00 via iPhone
    你们是如何格式化的?
    newbieooOO
        2
    newbieooOO  
    OP
       2016-12-23 14:13:49 +08:00
    用了 indent-guides, 只好让 script 内无缩进了:


    newbieooOO
        3
    newbieooOO  
    OP
       2016-12-23 14:14:37 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2859 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:59 · PVG 22:59 · LAX 07:59 · JFK 10:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.