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

2019-03-21 10:04:52 +08:00
 jdhao

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

3025 次点击
所在节点    程序员
6 条回复
yzlnew
2019-03-21 10:05:56 +08:00
vimtex
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
2019-03-21 14:45:46 +08:00
jdhao
2019-03-21 14:51:20 +08:00
@ztnuaa 这个和 vimtex 哪个强
quinoa42
2019-03-21 14:52:08 +08:00
vimtex 用了挺久了,很好用
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.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/546870

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX