V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jdhao
V2EX  ›  程序员

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

  •  
  •   jdhao ·
    jdhao · Mar 21, 2019 · 3958 views
    This topic created in 2594 days ago, the information mentioned may be changed or developed.

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

    6 replies    2019-03-21 14:59:08 +08:00
    yzlnew
        1
    yzlnew  
       Mar 21, 2019
    vimtex
    ztnuaa
        2
    ztnuaa  
       Mar 21, 2019
    我用的 latex-suite,感觉蛮好用的.
    Plug 'vim-latex/vim-latex'
    比如输入 figure 再按 F5 会自动补全 figure 环境.非常方便
    我刚开始用的时候好像是参考的这个教程:
    https://www.jianshu.com/p/fe6ce57b3aca
    leomikezee
        3
    leomikezee  
       Mar 21, 2019 via iPhone
    jdhao
        4
    jdhao  
    OP
       Mar 21, 2019 via Android
    @ztnuaa 这个和 vimtex 哪个强
    quinoa42
        5
    quinoa42  
       Mar 21, 2019
    vimtex 用了挺久了,很好用
    ztnuaa
        6
    ztnuaa  
       Mar 21, 2019
    @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.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5065 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    ♥ Do have faith in what you're doing.