Hi Walter,

I'd say this is a feature, not a bug.  The idea is that you use <C-j>
(control-J) to cycle through <++> markers.  You write in the equation, press
<C-j> and fill in the label, and press <C-j> again to get outside the
equation environment where you can then press <enter> and continue writing
the prose of the document.

You can change this behavior by inserting the following into
~/.vim/ftplugin/tex.vim:

    call IMAP ('EEQ',
               \ . "\\begin{equation}\<cr><++>\<cr>"
               \ . "\\label{<++>}\<cr>"
               \ . "\\end{equation}", 'tex')

Hope this helps.

Cheers,
Mike


On Mon, May 26, 2014 at 9:03 PM, Walter Rabus <walter.ra...@web.de> wrote:
> Hi,
>
> I noticed a weird behavior when expanding a line with the vim-latexsuite
> and F5. Take the following code-snipped, pressing F5 in the line with
> the upper "equation" the line gets expanded to the lower construct:
>
> \documentclass[12pt,a4paper,oneside]{article}
> \usepackage{amssymb,amsmath}
> \begin{document}
>
> equation
>
> \begin{equation}
>         foo
>         \label{<++>}
> \end{equation}<++>
>
> \end{document}
>
> The problem I see with this is the <++> after "end{equation}" leads to
> "¡++¿" in the final document when compiled. As I think this is not
> intended to be there, I'd like to ask whether this is a bug or intended
> behavior for some reason and whether someone can reproduce it.
>
> I tested it with the git-version of vim-latexsuite as well.
>
> If it can be confirmed to be a reproducable bug, I would like to propose
> to remove the trailing "<++>" as I see no purpose it serves.
>
>
> Walter
>
> ------------------------------------------------------------------------------
> The best possible search technologies are now affordable for all companies.
> Download your FREE open source Enterprise Search Engine today!
> Our experts will assist you in its installation for $59/mo, no commitment.
> Test it for FREE on our Cloud platform anytime!
> http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to