V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jdhao
V2EX  ›  程序员

用 vim 写 LaTeX 有什么不错的插件

  •  
  •   jdhao ·
    jdhao · 2019-03-21 10:04:52 +08:00 · 2990 次点击
    这是一个创建于 1834 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,用 Vim 来写 LaTeX,有什么不错的插件可以分享的?自动补全,语法高亮等等都可以,有配置教程就更好了。。

    6 条回复    2019-03-21 14:59:08 +08:00
    yzlnew
        1
    yzlnew  
       2019-03-21 10:05:56 +08:00
    vimtex
    ztnuaa
        2
    ztnuaa  
       2019-03-21 14:42:36 +08:00
    我用的 latex-suite,感觉蛮好用的.
    Plug 'vim-latex/vim-latex'
    比如输入 figure 再按 F5 会自动补全 figure 环境.非常方便
    我刚开始用的时候好像是参考的这个教程:
    https://www.jianshu.com/p/fe6ce57b3aca
    leomikezee
        3
    leomikezee  
       2019-03-21 14:45:46 +08:00 via iPhone
    jdhao
        4
    jdhao  
    OP
       2019-03-21 14:51:20 +08:00 via Android
    @ztnuaa 这个和 vimtex 哪个强
    quinoa42
        5
    quinoa42  
       2019-03-21 14:52:08 +08:00
    vimtex 用了挺久了,很好用
    ztnuaa
        6
    ztnuaa  
       2019-03-21 14:59:08 +08:00
    @jdhao 我没有用过 vimtex,不过我看到 vimtex 的 Readme 中有描述二者的区别:
    https://github.com/lervag/vimtex

    The main difference between vimtex and LaTeX-Suite (aka vim-latex) is probably that vimtex does not try to implement a full fledged IDE for LaTeX inside Vim. E.g.:

    vimtex does not provide a full snippet feature, because this is better handled by UltiSnips or neosnippet or similar snippet engines.
    vimtex builds upon Vim principles: It provides text objects for environments, inline math, it provides motions for sections and paragraphs
    vimtex uses latexrun or latexmk for compilation with a callback feature to get instant feedback on compilation errors
    vimtex is very modular: if you don't like a feature, you can turn it off.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2873 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.