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.
Asked
Active
Viewed 92 times
0
1 Answers
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.
A Gold Man
- 1,428
: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