From 962932184e07882594745ed4f85e53b085bdeff0 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Sun, 22 Sep 2019 02:05:16 +0800 Subject: [PATCH] Update vimtex config to use LuaLaTeX by default --- vim/.vimrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 18f82c7..87b49b6 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -31,11 +31,24 @@ set conceallevel=1 let g:tex_conceal='abdmg' let g:vimtex_compiler_latexmk = { \ 'options': [ + \ '-bibtex', \ '-shell-escape', \ '-verbose', \ '-file-line-error', \ ] \} + +let g:vimtex_compiler_latexmk_engines = { + \ '_' : '-lualatex', + \ 'pdflatex' : '-pdf', + \ 'dvipdfex' : '-pdfdvi', + \ 'lualatex' : '-lualatex', + \ 'xelatex' : '-xelatex', + \ 'context (pdftex)' : '-pdf -pdflatex=texexec', + \ 'context (luatex)' : '-pdf -pdflatex=context', + \ 'context (xetex)' : '-pdf -pdflatex=''texexec --xtx''', +\} + Plug 'airblade/vim-gitgutter' call plug#end() @@ -53,6 +66,9 @@ set cursorline " set tab to enter spaces, instead set expandtab +" set entering tab to 4 spaces +set shiftwidth=4 tabstop=4 + " The template list is simply an array composed of vector that represents the " prefix and the suffix of the template file name let template_list = [