summaryrefslogtreecommitdiff
path: root/runtime/ftplugin/tex.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-19 21:23:36 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-19 21:23:36 +0000
commit8424a624ce1c38716deabd47f4da23f1e81614bd (patch)
tree908266a65b60968cb3b662765198239944b2a365 /runtime/ftplugin/tex.vim
parentc1e37901fc8486c9960d7290e521ba51e292e94b (diff)
downloadvim-git-8424a624ce1c38716deabd47f4da23f1e81614bd.tar.gz
updated for version 7.0e03v7.0e03
Diffstat (limited to 'runtime/ftplugin/tex.vim')
-rw-r--r--runtime/ftplugin/tex.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/ftplugin/tex.vim b/runtime/ftplugin/tex.vim
index b392fa278..408992743 100644
--- a/runtime/ftplugin/tex.vim
+++ b/runtime/ftplugin/tex.vim
@@ -1,8 +1,8 @@
" LaTeX filetype plugin
" Language: LaTeX (ft=tex)
" Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org>
-" Version: 1.3
-" Last Change: Wed 22 Mar 2006 09:36:32 AM EST
+" Version: 1.4
+" Last Change: Wed 19 Apr 2006
" URL: http://www.vim.org/script.php?script_id=411
" Only do this when not done yet for this buffer.
@@ -17,6 +17,8 @@ source $VIMRUNTIME/ftplugin/plaintex.vim
let s:save_cpo = &cpo
set cpo&vim
+let b:undo_ftplugin .= "| setl inex<"
+
" Allow "[d" to be used to find a macro definition:
" Recognize plain TeX \def as well as LaTeX \newcommand and \renewcommand .
" I may as well add the AMS-LaTeX DeclareMathOperator as well.
@@ -33,9 +35,9 @@ let &l:includeexpr = "substitute(v:fname, '^.\\{-}{\\|}.*', '', 'g')"
" The following lines enable the macros/matchit.vim plugin for
" extended matching with the % key.
" ftplugin/plaintex.vim already defines b:match_skip and b:match_ignorecase
-" and matches \(, \), \[, and \].
+" and matches \(, \), \[, \], \{, and \} .
if exists("loaded_matchit")
- let b:match_words .= '\\begin\s*\({\a\+\*\=}\):\\end\s*\1'
+ let b:match_words .= ',\\begin\s*\({\a\+\*\=}\):\\end\s*\1'
endif " exists("loaded_matchit")
let &cpo = s:save_cpo