On 2011-11-07, Harold Pimentel wrote:
> Hi all,
>
> I recently started using Vim and I'm using autoclose and vim-latex
> plugins (among others).
>
> I have this strange issue when typing in LaTeX that suddenly auto
> pairing doesn't work. If I open a new buffer, it does not work there
> as well. Then, when I manually close some braces }, ], I get these
> weird extra characters added after the closing brace: <++>
>
> If anyone has any ideas, please let me know. I'd greatly appreciate it.
The Vim LaTeX Suite includes some insert-mode mappings that try to
save you keystrokes by detecting the type of LaTeX structure that
you are creating and completing parts of it for you. When it does
this, it inserts <++> as a placeholder in the next part of the
structure to be defined. When you complete the part of the
structure the cursor is currently in, you type Ctrl-J and the
cursor advances to the next <++> section. See
:help imaps-usage
You can also find a whole lot of examples by executing
:helpgrep <++>
In some cases this expansion is triggered by typing a closing
parenthesis, brace or bracket. There is probably interference
between those mappings and those of your autoclose plugin.
How you resolve the issue will depend on the behavior you want.
Personally, those Vim LaTeX mappings drove me crazy so I disabled
them by putting this in a ~/.vim/after/ftplugin/tex.vim file.
for s:m in ['}', ')', ']', ':']
silent! execute 'iunmap' s:m
endfor
unlet s:m
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php