Re: [Vim-latex-devel] <F5>, theorem and NO label.
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-09-11 01:16:44
|
On Wed, 10 Sep 2003, Bart Kastermans wrote: > I use vim+latexsuite, and am very happy with how things > work. There is just one thing that is starting to get to > me, and it seems like something that should be easily > configurable; but I can't find it in the user manual. > > When I have a line just containing ``theorem'' and > press <F5> I get > \begin{theorem} > \label{}<++> > \end{theorem}<++> > > Most of my theorems are not labelled. So I want to disable > the ``\label{}<++>'' from showing up. Can you tell me how > to achieve this? > Amazingly enough, as of now, there is no simple way to set anything to change this without modifying latex-suite :( There have been quite a few requests like this though, so we will definitely try to find a way to do this better in the future. In the meanwhile, you will have to patch ftplugin/latex-suite/envmacros.vim, which ships with latex-suite. (Basically, all environments in that pattern get a \label in them). > BTW: I am using latex-suite RC 1 on VIM 6.1. > You mean RC 1.5 right? HTH (for now), Srinath Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.34 diff -c -r1.34 envmacros.vim *** envmacros.vim 27 Jun 2003 22:20:16 -0000 1.34 --- envmacros.vim 11 Sep 2003 01:01:22 -0000 *************** *** 554,560 **** endif 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) elseif a:env =~ "enumerate\\|itemize\\|theindex\\|trivlist" --- 554,560 ---- endif return VEnclose('\begin{'.a:env.'}', '\end{'.a:env.'}', '\begin{'.a:env.'}', '\end{'.a:env.'}') else ! if a:env =~ 'equation*\|eqnarray*\|lemma\|equation\|eqnarray\|align\*\|align\>\|multline' let g:aa = a:env return Tex_eqnarray(a:env) elseif a:env =~ "enumerate\\|itemize\\|theindex\\|trivlist" |