summaryrefslogtreecommitdiff
path: root/.vim/ftplugin/tex.vim
blob: a218cc7f95e3466231c5df4292defa6bf2548e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
" 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"  ``''<Left><Left>

" Some mappings for often used commands
  iab ,b \begin{}<Esc>i
  iab ,e \end{}<Esc>i

" A mapping for more effective use of latex compiling
  map <F7> : call CompileRunPDF()<CR>
  func! CompileRunPDF()
  exec "w"
  exec "!latex % && dvipdf %<.dvi && xpdf %<.pdf"
  exec "i"
  endfunc

s='right'>2016-09-21 15:01:57 +0200 committerIngo Molnar <mingo@kernel.org>2016-09-21 15:01:57 +0200 commit580498a23be1de55be55147eaee20a69249aeb13 (patch) tree345f1a280812bf15969ae7097583b7dd59482636 /Documentation parent3ec979658e5cc0fab86a42af79a650299e4d7135 (diff)parent7d1e042314619115153a0f6f06e4552c09a50e13 (diff)
Merge branch 'linus' into x86/boot, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation')