[Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.34,1.35
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-09-12 10:29:37
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv14631 Modified Files: envmacros.vim Log Message: New: customization of environments via new variables of the form g:Tex_Env_name as described in the manual. As of now, the customization only works with the first three methods (press <F5> on an empty line or with a word and the <S-F1> through <S-F4> keys). Making it work with things like EMA etc will take quite a bit of work because there is a lot of different ways in which the 3 letter macros are setup. Most of them do not use Tex_DoEnvironment. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** envmacros.vim 27 Jun 2003 22:20:16 -0000 1.34 --- envmacros.vim 12 Sep 2003 10:29:33 -0000 1.35 *************** *** 555,559 **** return VEnclose('\begin{'.a:env.'}', '\end{'.a:env.'}', '\begin{'.a:env.'}', '\end{'.a:env.'}') else ! if a:env =~ 'equation*\|eqnarray*\|theorem\|lemma\|equation\|eqnarray\|align\*\|align\>\|multline' let g:aa = a:env return Tex_eqnarray(a:env) --- 555,565 ---- return VEnclose('\begin{'.a:env.'}', '\end{'.a:env.'}', '\begin{'.a:env.'}', '\end{'.a:env.'}') else ! " The user can define something like ! " let g:Tex_Env_theorem = "\\begin{theorem}\<CR><++>\<CR>\\end{theorem}" ! " This will effectively over-write the default definition of the ! " theorem environment which uses a \label. ! if exists("g:Tex_Env_{'".a:env."'}") ! return IMAP_PutTextWithMovement(g:Tex_Env_{a:env}) ! elseif a:env =~ 'equation*\|eqnarray*\|theorem\|lemma\|equation\|eqnarray\|align\*\|align\>\|multline' let g:aa = a:env return Tex_eqnarray(a:env) |