Skip to content

Instantly share code, notes, and snippets.

@soh335
Created December 15, 2009 09:51
Show Gist options
  • Save soh335/256819 to your computer and use it in GitHub Desktop.
Save soh335/256819 to your computer and use it in GitHub Desktop.
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi'
let g:Tex_BibtexFlavor = 'jbibtex'
let g:Tex_CompileRule_dvi = 'platex-utf8 -interaction-nonstopmode $*'
let g:Tex_FormatDependency_pdf='dvi,pdf'
let g:Tex_ViewRule_pdf = 'open -a /Applications/Preview.app'
let g:Tex_IgnoredWarnings =
\"Underfull\n".
\"Overfull\n".
\"specifier changed to\n".
\"You have requested\n".
\"Missing number, treated as zero.\n".
\"There were undefined references\n".
\"Citation %.%# undefined\n".
\'LaTeX Font Warning:'"
let g:Tex_IgnoreLevel = 8
function! CompileAndView()
execute 'w'
call Tex_RunLaTeX()
if !empty(getqflist())
return 0
endif
call Tex_ViewLaTeX()
endfunction
autocmd FileType tex nnoremap <leader>r :call CompileAndView()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment