From 56f3485b38c37d4f4f92cb272b4da3e3125011ca Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 29 Mar 2015 17:53:08 +0100 Subject: Replaced latex-box by vimtex --- vim/vimrc | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 735ca80..ed6e0c0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -7,7 +7,7 @@ call vundle#rc() "" Plugins Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' +Plugin 'lervag/vimtex' Plugin 'fugitive.vim' Plugin 'gregsexton/gitv' Plugin 'UltiSnips' @@ -44,29 +44,16 @@ let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] let g:ctrlp_open_new_file = 't' noremap :UltiSnipsEdit -" Latex-Box -let g:tex_flavor='latex' -let g:tex_conceal= 'adgm' -let g:LatexBox_Folding=0 -let g:LatexBox_viewer='zathura' -let g:LatexBox_latexmk_preview_continuously=1 -let g:LatexBox_quickfix=2 -function! SynctexShow() - let synctex = glob("*.synctex.gz") - if strlen(synctex) == 0 - echom "no synctex file found" - else - let pdffile = substitute(synctex,"synctex.gz","pdf","") - let execline = printf(":!zathura --synctex-forward %d:%d:%s %s", line('.'), col('.'), shellescape(bufname("%")), shellescape(pdffile)) - exec execline - end -endfunction +let g:vimtex_fold_enabled=0 +let g:vimtex_view_method='zathura' +let g:vimtex_latexmk_continuous=1 +let g:vimtex_quickfix_mode=2 -nnoremap a :call SynctexShow() -nnoremap i :Latexmk -nnoremap e :LatexErrors -nnoremap o :LatexView -nnoremap k :LatexmkStop:LatexmkClean +nnoremap i :VimtexCompile +nnoremap e :VimtexErrors +nnoremap v :VimtexView +nnoremap k :VimtexStop:VimtexClean +nnoremap t :VimtexTocToggle nnoremap h :split header.sty " Gundo @@ -138,6 +125,9 @@ set linebreak set textwidth=0 set conceallevel=2 set guifont=Monaco\ 11 +set lazyredraw +highlight diffAdded guifg=#00bf00 +highlight diffRemoved guifg=#bf0000 " Case and spell set nospell -- cgit v1.2.3