-
Notifications
You must be signed in to change notification settings - Fork 5
TeX
G. Bai edited this page Mar 9, 2021
·
10 revisions
I use Vim to edit and compile LaTeX files, with the help of VimTeX and UltiSnips plugins.
Here's the help for airline-vimtex
:
------------------------------------- *airline-vimtex*
vimtex <https://github.com/lervag/vimtex>
Shows the current file's vimtex related info.
* enable/disable vimtex integration >
let g:airline#extensions#vimtex#enabled = 1
<
* left and right delimiters (shown only when status string is not empty) >
let g:airline#extensions#vimtex#left = "{"
let g:airline#extensions#vimtex#right = "}"
State indicators:
* the current tex file is the main project file
(nothing is shown by default) >
let g:airline#extensions#vimtex#main = ""
* the current tex file is a subfile of the project
and the compilation is set for the main file >
let g:airline#extensions#vimtex#sub_main = "m"
* the current tex file is a subfile of the project
and the compilation is set for this subfile >
let g:airline#extensions#vimtex#sub_local = "l"
* single compilation is running >
let g:airline#extensions#vimtex#compiled = "c₁"
* continuous compilation is running >
let g:airline#extensions#vimtex#continuous = "c"
* viewer is opened >
let g:airline#extensions#vimtex#viewer = "v"
My setting is here.
I use Honza's vim-snippets/UltiSnips/tex.snippets and sometimes reference vim-snippets/snippets/tex.snippets (this latter one has many bugs, no good, so I disabled it) for basic snippets completion, which is configured in my vimrc
. I also maintain a personal tex.snippets for my own use which has the highest priority.