I just encountered a problem with the macros defined in
ftplugin/latex-suite/envmacros.  A macro defined there is expanded
even if I type it in the middle of a word.  For example, if I try to
type the word DELETED, the letters ETE trigger a macro and the
result looks like this:

    type the word DEL\begin{table}
        \centering
        \begin{tabular}{<+dimensions+>}
            <++>
        \end{tabular}
        \caption{<+Caption text+>}
        \label{tab:<+label+>}
    \end{table}<++>

I can work around the problem by preceding the last letter of such
macro names with Ctrl-V, or I can disable all those macros by
setting g:Tex_EnvironmentMaps to 0 in my ftplugin/tex.vim file, but
the former is awkward and the latter removes the functionality of
those macros.

It seems to me that those macros would be more useful if they were
not expanded in the middle of words but were expanded only in a more
distinguishing context such as at the beginning of a line or when
preceded or followed by some unusual character.  Is there some way
to configure this that I missed or would this require a change to
the macro package?

Regards,
Gary


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to