0

This question already has an answer here:

My vim snippet appear <++> every time i i use tab. I want to use tab completion, yet the <++> doesn't make any sense. For instance, /title{<++>}. Is there a mapping feature in vim snippet i didn't know? or quick shortcut that i miss.

marked as duplicate by TeXnician, Milo, siracusa, Phelype Oleinik, Stefan Pinnow Sep 4 '18 at 19:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    can you post the output of :imap <Tab>? In general the <++> is a placeholder, so you can fill things in and jump to it by pressing ctrl-J – A Gold Man Nov 22 '17 at 20:31
  • O dear, thanks alot. You are the one, i knew it. Something, must be be hind. I got the config file from a guy on youtube. Now i see why he has it. – vincent pham Nov 22 '17 at 22:20
1

The <++> is a placeholder. It's a function of the IMAP plugin included in vim-latex. You jump to it by pressing Ctrl-J.

Consider this example. When you type in "EDE" (the shortcut for the description environment) in insert mode, the following shows up:

\begin{description}
  \item[<+label+>] <++>
\end{description} <++>

This puts in the environment, with placeholders where you need them; first your cursor is placed where the label would go, so you can fill it in. The next thing you'd type in is the rest of the description, so instead of moving over to it, you can just press Ctrl-J. Then, it leaves a placeholder outside the environment, so you don't have to move out of the environment.

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