summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/tex.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
commit9a7224b5a0639c26c843c10afcafa5bf149271fd (patch)
tree9cafda4f3dd87f3ba177401248d65aa241f63ced /runtime/compiler/tex.vim
parente8938e507e5dbeea25accd3586cd9aca13e5bf64 (diff)
Fixed compatible mode in most runtime files.
Diffstat (limited to 'runtime/compiler/tex.vim')
-rw-r--r--runtime/compiler/tex.vim11
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/compiler/tex.vim b/runtime/compiler/tex.vim
index 5828a91ab9..e43be8dbd6 100644
--- a/runtime/compiler/tex.vim
+++ b/runtime/compiler/tex.vim
@@ -1,11 +1,13 @@
" Vim compiler file
" Compiler: TeX
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
-" Last Change: 2004 Mar 27
+" Last Change: 2012 Apr 30
if exists("current_compiler")
finish
endif
+let s:keepcpo= &cpo
+set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
@@ -30,9 +32,6 @@ else
let current_compiler = 'make'
endif
-let s:cpo_save = &cpo
-set cpo-=C
-
" Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
" addition from Srinath Avadhanula <srinath@fastmail.fm>
CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
@@ -64,5 +63,5 @@ CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
\%+Q%*[^()])%r,
\%+Q[%\\d%*[^()])%r
-let &cpo = s:cpo_save
-unlet s:cpo_save
+let &cpo = s:keepcpo
+unlet s:keepcpo