Mercurial > vim
diff runtime/ftplugin/tex.vim @ 837:6bb1fa855dc9 v7.0e03
updated for version 7.0e03
author | vimboss |
---|---|
date | Wed, 19 Apr 2006 21:23:36 +0000 |
parents | 6beb2c667935 |
children | 94601b379f38 |
line wrap: on
line diff
--- 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 " 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