Change from LaTeX-Box to vimtex

This commit is contained in:
Alexander Gehrke 2019-05-09 11:16:41 +02:00
parent 5e960cdbc8
commit ce27ba70e4
2 changed files with 4 additions and 34 deletions

View file

@ -1,35 +1,3 @@
" set makeprg=latexmk
setlocal errorformat=%f:%l:\ %m,%f:%l-%\\d%\\+:\ %m
if filereadable('Makefile')
setlocal makeprg=make
else
exec "setlocal makeprg=make\\ -f\\ ~/.config/makefiles/latex.mk\\ " . substitute(bufname("%"),"tex$","pdf", "")
endif
let g:LatexBox_completion_environments += [
\ {'word': 'frame', 'menu': 'beamer frame'},
\ {'word': 'block', 'menu': 'beamer block'},
\ {'word': 'alertblock', 'menu': 'beamer block'},
\ {'word': 'tikzpicture', 'menu': 'tikz'},
\ {'word': 'cases', 'menu': 'math cases'},
\ {'word': 'lstlisting', 'menu': 'code listing'},
\ {'word': 'matrix', 'menu': 'matrix'},
\ {'word': 'pmatrix', 'menu': '(matrix)'},
\ {'word': 'bmatrix', 'menu': '[matrix]'},
\ {'word': 'Bmatrix', 'menu': '{matrix}'},
\ {'word': 'subfigure', 'menu': 'subfigure'},
\ {'word': 'split', 'menu': 'math split'},
\]
let g:LatexBox_completion_commands += [
\ {'word': '\ExplSyntaxOn', 'menu': 'start LaTeX3 syntax'},
\ {'word': '\ExplSyntaxOff', 'menu': 'stop LaTeX3 syntax'},
\ {'word': '\frametitle', 'menu': 'beamer title'},
\ {'word': '\alert', 'menu': 'beamer title'},
\ {'word': '\uncover<', 'menu': 'beamer uncover', 'abbr': '\uncover'}
\]
if exists("&cole") if exists("&cole")
" conceal" Use conceal vim 7.3 feature: " conceal" Use conceal vim 7.3 feature:
set cole=0 " conceal level set cole=0 " conceal level
@ -39,7 +7,7 @@ if exists("&cole")
endif endif
imap <buffer> [[ \begin{<C-x><C-o> imap <buffer> [[ \begin{<C-x><C-o>
imap <buffer> ]] <Plug>LatexCloseCurEnv imap <buffer> ]] <Plug>(vimtex-delim-close)
imap <buffer> [( \left( imap <buffer> [( \left(
nmap <buffer> <F5> <Plug>LatexChangeEnv nmap <buffer> <F5> <Plug>LatexChangeEnv
@ -50,3 +18,5 @@ map <silent> <buffer> <F10> :exec "silent !xdg-open" expand("%:t:r") . ".pd
map <silent> <buffer> <expr> <F9> vimproc#system_bg("latexmk " . expand("%") . " &") map <silent> <buffer> <expr> <F9> vimproc#system_bg("latexmk " . expand("%") . " &")
setlocal tw=100 setlocal tw=100
map <silent> <buffer> <F3> :exec "Ack! -w " . substitute(expand('<cword>'), 'SRC','\\>','')<cr>v:ccl<cr>zR

View file

@ -70,7 +70,7 @@ Plug 'w0rp/ale'
Plug 'jamessan/vim-gnupg' Plug 'jamessan/vim-gnupg'
Plug 'powerman/vim-plugin-AnsiEsc' Plug 'powerman/vim-plugin-AnsiEsc'
Plug 'tpope/vim-markdown' Plug 'tpope/vim-markdown'
Plug 'LaTeX-Box-Team/LaTeX-Box' Plug 'lervag/vimtex'
Plug 'ledger/vim-ledger' Plug 'ledger/vim-ledger'
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'kchmck/vim-coffee-script' Plug 'kchmck/vim-coffee-script'