feat: vimtex config and latex config

This commit is contained in:
lohhiiccc 2026-03-30 20:46:28 +02:00
parent 96f5928290
commit ad854ba604
2 changed files with 29 additions and 0 deletions

View file

@ -11,3 +11,31 @@ augroup FocusNumbers
autocmd WinEnter,BufEnter * setlocal relativenumber autocmd WinEnter,BufEnter * setlocal relativenumber
autocmd WinLeave,BufLeave * setlocal norelativenumber autocmd WinLeave,BufLeave * setlocal norelativenumber
augroup END augroup END
let g:vimtex_view_method = 'general'
let g:vimtex_compiler_method = 'pdflatex'
let g:vimtex_compiler_pdflatex = {
\ 'build_dir' : 'build',
\ 'callback' : 1,
\ 'continuous' : 0,
\ 'options' : [
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
let g:vimtex_quickfix_mode = 2
let g:vimtex_quickfix_open_on_warning = 0
augroup LatexAbbrev
autocmd!
autocmd FileType tex inoreabbrev <buffer> sec \section{}<Left>
autocmd FileType tex inoreabbrev <buffer> ssec \subsection{}<Left>
autocmd FileType tex inoreabbrev <buffer> bf \textbf{}<Left>
autocmd FileType tex inoreabbrev <buffer> it \textit{}<Left>
autocmd FileType tex inoreabbrev <buffer> href \href{}{}<Left><Left><Left>
autocmd FileType tex inoreabbrev <buffer> enum \begin{itemize}<CR>\item<CR>\end{itemize}<Up>
augroup END

@ -0,0 +1 @@
Subproject commit 82d2305ff71dfb3bd91602534cc9bb9a195bcb38