Preben Randhol wrote:
> My abbreviations won't work when I use LatexSuite now. My file looks
> like this:
>
> iab gradc \gradC{}
> iab co32- CO$_{3}^{2-}$
> iab so42- SO$_{4}^{2-}$
> iab ca2+ Ca$^{2+}$
> iab ba2+ Ba$^{2+}$
> iab sr2+ Sr$^{2+}$
> iab mg2+ Mg$^{2+}$
> iab co2 CO$_{2}$
> iab h2o H$_{2}$O
> iab caco3 CaCO$_{3}$
> iab nahco3 NaHCO$_{3}$
> iab na2co3 Na$_{2}$CO$_{3}$
> iab cacl2 CaCl$_{2}$
> iab mgcl2 MgCl$_{2}$
> iab LAB \label{}
> iab REF \ref{}
> iab FIG Figure~\ref{fig:}
> iab '- {}
>
> If I remove imaps.vim the iab's work. However if I use an old imaps.vim
> it doesn't work again. So I don't know if it is imaps.vim or some other
> file that is bugging. If I source the iab file for a text file then it
> works.
>
> Thanks in advance
>
> PS: If I can do something to help debug please let me know.
I think that imaps.vim will break most ordinary :imap's. Try
replacing your ordinary :iab's with things like
:call IMAP("caco3", "CaCO$_{3}$", "tex")
and so on. You might even try using the cursor-positioning techniques
with things like
:call IMAP("LAB", '\label{<++>}<++>', "tex")
HTH --Benji Fisher
|