Skip to content

Instantly share code, notes, and snippets.

@soh335
Created May 3, 2009 11:13
Show Gist options
  • Save soh335/105950 to your computer and use it in GitHub Desktop.
Save soh335/105950 to your computer and use it in GitHub Desktop.
"{{{ vim-latex
"http://vim.g.hatena.ne.jp/y_yanbe/20080918/1221724545
set shellslash
set grepprg=grep\ -nH\ $*
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi'
let g:Tex_CompileRule_dvi = 'platex --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
nnoremap <silent><space>ll :call Tex_RunLaTeX()<CR>
nnoremap <silent><space>lv :call Tex_ViewLaTeX()<CR>
function! CompileAndView()
execute 'w'
call Tex_RunLaTeX()
call Tex_ViewLaTeX()
endfunction
nnoremap <silent><space>lr :call CompileAndView()<CR>
"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment