Andriy Drozdyuk
Andriy Drozdyuk

Reputation: 61121

Vim $$ automatically adds <++>

For some reason, whenever I type $$ in Vim, it automatically adds <++> right after it, and positions my cursor between the $ symbols.

So I get something this in the end (| indicates cursor position):

$|$<++>

I am using vim-latex package, but I am not sure if that has something to do with it. I am using $$ a lot for the math environment, so it really gets old fighting vim on this.

Does anyone know what this thing is and how do I disable it (or use it properly)?

EDIT: Just for clarification, I actually want the double dollar sign, to make a multi-line math environement:

$$
x+ y
$$

Upvotes: 1

Views: 143

Answers (1)

beta
beta

Reputation: 2560

As Benoit wrote, you can use Ctrl-J to jump to the next <++>. These are called place holders and are explained in chapter 3 of the vim-latex documentation: Latex-Suite Macros.

Upvotes: 3

Related Questions