目录
安装、配置vimtex
Plug 'lervag/vimtex'
```
let g:tex_flavor= 'latex'
"使vimtex默认xelatex为编译器
let g:vimtex_compiler_latexmk_engines = {'':'-xelatex'}
let g:vimtex_compiler_latexrun_engines ={'':'xelatex'}
"使vimtex默认zathura为pdf阅读器
let g:vimtex_view_method= 'zathura'
"设置可以看到编译提示
let g:vimtex_quickfix_mode=1
"最后两行开启自动隐藏功能,开启了这个功能,除了你光标所在的那一行之外,文本里夹杂的LaTeX代码就都会隐藏或者替换成其他符号
set conceallevel=1
let g:tex_conceal= 'abdmg'
# 安装texlive
sudo apt-get update
sudo apt-get install texlive-full
或者:
sudo apt-get install texlive-full --fix-missing
# 安装zathura
`sudo apt install xdotool zathura zathura-pdf-poppler zathura*`
标签:Neovim,LaTeX,vimtex,sudo,apt,LUbuntu,zathura,let
From: https://www.cnblogs.com/DWYCWWYHWYA/p/17085714.html