mirror of
https://gitlab.mn.tu-dresden.de/s1140568/masterthesis.git
synced 2024-10-29 10:01:35 +01:00
45 lines
1.9 KiB
Text
45 lines
1.9 KiB
Text
" vim: filetype=vim
|
|
" this is a local settings file for vim
|
|
" it is read because of the plugin https://github.com/flatcap/vim-local
|
|
|
|
" the setting about the build directory is also in the .latexmkrc file
|
|
" but vimtex (a vim plugin for everything about tex) doesn't know this from the .latexmkrc file
|
|
" but vimtex needs to know this because the thesis.fls file includes the information
|
|
" that the biblatex package is loaded which tells vimtex to ignore
|
|
" spellchecking in \autocite arguments
|
|
" see vimtex-package-detection in vimtex help (:help vimtex-package-detection)
|
|
let g:vimtex_compiler_latexmk = {
|
|
\ 'build_dir' : '.maindir/out',
|
|
\ }
|
|
|
|
" sometimes before compiling with vimtex via \ll vimtex didn't recognize the thesis.fls
|
|
let g:vimtex_main = '.maindir/tex/thesis.tex'
|
|
autocmd BufReadPre *.tex let b:vimtex_main = '.maindir/tex/thesis.tex'
|
|
" but with those settings it still sometimes doesn't. So use in global vim latex settings file. vimtex_syntax_packages option
|
|
|
|
set spelllang=en_gb spell
|
|
set spellfile=.maindir/scripts/en.utf-8.add
|
|
|
|
" *g:vimtex_quickfix_ignore_filters*
|
|
" This option allows to provide a list of |regular-expression|s for filtering
|
|
" out undesired errors and warnings. This works regardless of which quickfix
|
|
" method is enabled.
|
|
"
|
|
" The following example will ignore any messages that match "Marginpar on
|
|
" page": >
|
|
"
|
|
" " Disable custom warnings based on regexp
|
|
" let g:vimtex_quickfix_ignore_filters = [
|
|
" \]
|
|
|
|
" let g:vimtex_include_indicators = ['input', 'include', 'textinput', 'tikzinput', 'maininput']
|
|
" , '\input', '\include', '\textinput', '\tikzinput', '\maininput', '\\input', '\\include', '\\textinput', '\\tikzinput', '\\maininput']
|
|
|
|
let g:vimtex_syntax_custom_cmds = [
|
|
\ {'name': 'textinput', 'argspell': 0},
|
|
\ {'name': 'tikzinput', 'argspell': 0},
|
|
\ {'name': 'maininput', 'argspell': 0},
|
|
\ {'name': 'newTerm', 'argstyle': 'ital', 'conceal': 1},
|
|
\ {'name': 'imp', 'argstyle': 'ital', 'conceal': 1}
|
|
\ ]
|
|
|