[Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.18,1.19
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-10 01:56:49
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv30670 Modified Files: envmacros.vim Log Message: - Bugfix: <F5> and then choosing option 5 ('\[') inserted \begin{\[} etc instead of just \[. - Support choosing $$ and \[ after <F5> in visual mode as well. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** envmacros.vim 9 Jan 2003 15:31:36 -0000 1.18 --- envmacros.vim 10 Jan 2003 01:56:42 -0000 1.19 *************** *** 572,575 **** --- 572,580 ---- function! Tex_PutEnvironment(env) if s:isvisual == "yes" + if a:env == '\[' + return VEnclose('', '', '\[', '\]') + elseif a:env == '$$' + return VEnclose('', '', '$$', '$$') + endif return VEnclose('\begin{'.a:env.'}', '\end{'.a:env.'}', '\begin{'.a:env.'}', '\end{'.a:env.'}') else *************** *** 586,590 **** elseif a:env == '$$' return IMAP_PutTextWithMovement('$$<++>$$') ! elseif a:env == '[' return IMAP_PutTextWithMovement("\\[\<CR><++>\<CR>\\]<++>") else --- 591,595 ---- elseif a:env == '$$' return IMAP_PutTextWithMovement('$$<++>$$') ! elseif a:env == '\[' return IMAP_PutTextWithMovement("\\[\<CR><++>\<CR>\\]<++>") else |