Created
December 15, 2009 09:51
-
-
Save soh335/256819 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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