I have a LaTeX editing environment that does some assistive stuff such as auto-indenting, closing parentheses, etc.

However, one of the things that it does is unknown to me, and is difficult to search for. If I type an empty set of braces, it replaces them with


If I type two empty sets, for example when I'm setting up a fraction \frac{}{} what I actually get is

\frac\left\{ } \right\}<++>}<++>

Is this a problem? What does <++> do?

Edit: This is using Vim-LaTex / LaTeX-Suite

  • 1
    It will help greatly if you provide information about the editor you use. – N.N. Jun 15 '11 at 13:59
  • 1
    Have you opened your LaTeX document with another text editor to check if it really adds that to the file or is just some kind of markup? – henrique Jun 15 '11 at 14:03
  • @henrique Yes, it actually saves it in the file. – Zxaos Jun 15 '11 at 14:10
  • I'm not sure, but I guess this <++> is a regex pattern for the plugin in order to allow code completion. Like placeholders. – Paulo Cereda Jun 15 '11 at 14:14
  • 4
    By the way, to get a fraction in Vim-LaTeX, you can type `/, which will insert \frac{}{<++>}<++>, placing the cursor under the first }. That means you can just type the numerator, press Crtl-J, type the denominator, press Crtl-J again, and continue typing after the fraction. – Jan Hlavacek Jun 15 '11 at 18:56

The Vim-LaTex / LaTeX-Suite for Vim adds these markers automatically and by intension. You can jump to the next such marker using CTRL+J, which removes this marker. The idea is to speed things up by allowing you to jump to the end of the group or environment which was just added. This is also useful for templates where you can add <+name+> markers which then can be also accessed using the above key combination to insert the content.

You should be able to deactivate the auto-insertion of these markers using the command:

let g:Imap_UsePlaceHolders = 0

  • 1
    To deactivate the automatic insertion of those markers: let g:Imap_UsePlaceHolders = 0 – Scribblemacher Aug 15 '12 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.