feat: vimtex config and latex config
This commit is contained in:
parent
96f5928290
commit
ad854ba604
2 changed files with 29 additions and 0 deletions
|
|
@ -11,3 +11,31 @@ augroup FocusNumbers
|
|||
autocmd WinEnter,BufEnter * setlocal relativenumber
|
||||
autocmd WinLeave,BufLeave * setlocal norelativenumber
|
||||
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
|
||||
|
|
|
|||
1
vim/.vim/pack/latex/start/vimtex
Submodule
1
vim/.vim/pack/latex/start/vimtex
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 82d2305ff71dfb3bd91602534cc9bb9a195bcb38
|
||||
Loading…
Add table
Reference in a new issue