" some general options set ai " autoindent set et " expandtab set ts=2 " tabstop set tw=85 " textwidth " compile tex-files with latex set makeprg=latex\ % " Inserting pairs of quotes: imap Y" ``'' " Some mappings for often used commands iab ,b \begin{}i iab ,e \end{}i " A mapping for more effective use of latex compiling map : call CompileRunPDF() func! CompileRunPDF() exec "w" exec "!latex % && dvipdf %<.dvi && xpdf %<.pdf" exec "i" endfunc