From ce27ba70e423572ed2170fc04dffaef6fc60c784 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Thu, 9 May 2019 11:16:41 +0200 Subject: [PATCH] Change from LaTeX-Box to vimtex --- after/ftplugin/tex.vim | 36 +++--------------------------------- packages.vim | 2 +- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim index cccad24..1142586 100644 --- a/after/ftplugin/tex.vim +++ b/after/ftplugin/tex.vim @@ -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") " conceal" Use conceal vim 7.3 feature: set cole=0 " conceal level @@ -39,7 +7,7 @@ if exists("&cole") endif imap [[ \begin{ -imap ]] LatexCloseCurEnv +imap ]] (vimtex-delim-close) imap [( \left( nmap LatexChangeEnv @@ -50,3 +18,5 @@ map :exec "silent !xdg-open" expand("%:t:r") . ".pd map vimproc#system_bg("latexmk " . expand("%") . " &") setlocal tw=100 + +map :exec "Ack! -w " . substitute(expand(''), 'SRC','\\>','')v:cclzR diff --git a/packages.vim b/packages.vim index f28057a..24029aa 100644 --- a/packages.vim +++ b/packages.vim @@ -70,7 +70,7 @@ Plug 'w0rp/ale' Plug 'jamessan/vim-gnupg' Plug 'powerman/vim-plugin-AnsiEsc' Plug 'tpope/vim-markdown' -Plug 'LaTeX-Box-Team/LaTeX-Box' +Plug 'lervag/vimtex' Plug 'ledger/vim-ledger' Plug 'elzr/vim-json' Plug 'kchmck/vim-coffee-script'