diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-03-30 12:12:49 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-03-30 12:12:49 +0100 |
commit | 9a2ebe8e34e8be613da5e975b8a76e3b8ae7e215 (patch) | |
tree | 612db282ca020914bfcc087638766abf83b1e8ab /vim/vimrc | |
parent | b7e66c07bc4d99f03c542a77ee5e7aa353dd16c3 (diff) | |
parent | 6fb28bc4b38947281908917b9230e78692674fdc (diff) |
resolved merge conflicts
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 37 |
1 files changed, 14 insertions, 23 deletions
@@ -7,8 +7,9 @@ call vundle#rc() "" Plugins Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' +Plugin 'lervag/vimtex' Plugin 'fugitive.vim' +Plugin 'gregsexton/gitv' Plugin 'UltiSnips' Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-surround' @@ -43,29 +44,16 @@ let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] let g:ctrlp_open_new_file = 't' noremap <c-h> :UltiSnipsEdit<Return> -" 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 <LocalLeader>a :call SynctexShow()<CR><CR> -nnoremap <LocalLeader>i :Latexmk<CR> -nnoremap <LocalLeader>e :LatexErrors<CR> -nnoremap <LocalLeader>o :LatexView<CR> -nnoremap <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR> +nnoremap <LocalLeader>i :VimtexCompile<CR> +nnoremap <LocalLeader>e :VimtexErrors<CR> +nnoremap <LocalLeader>v :VimtexView<CR> +nnoremap <LocalLeader>k :VimtexStop<CR>:VimtexClean<CR> +nnoremap <LocalLeader>t :VimtexTocToggle<CR> nnoremap <LocalLeader>h :split header.sty<CR> " Gundo @@ -137,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 |