On Wed, Nov 15, 2006 at 12:48:06PM +0100, Roberto Bonvallet wrote:
> 2006/11/15, no one <[EMAIL PROTECTED]>:
> >(This is the first message I'm writing to a mailing list[...])
> 
> Welcome!
> 
> >While filetype=tex, when I type right parenthesis of the kind ],),}
> >right after the left parenthesis of the same kind, vim adds '<++>'
> >after the right parenthesis, and moves the cursor to between the
> >parentheses. How can I prevent the first action?
> 
> I don't know how to disable it, but I can tell you what is this <++>
> thing about.  The idea is that after typing (), the cursor moves
> between the parenthesis so you can type what will be between them.
> When you finish, you press Ctrl-J, and the cursor automagically jumps
> where the <++> is, erasing it and allowing you to continue the text.
> 
> It also annoyed me the first time, but when I learned about it I loved it!
> Cheers,

     This is not default vim behavior.  I think you both have
latex-suite installed.

     There are various ways to disable this behavior if, after trying
it, you still do not like it.

1. Type <C-V> (i.e., hold the CTRL key while typing v) before the second
paren:  (<C-V>).

:help i_CTRL-V

2. For your current vim session,

:iunmap )

3. There should be a way to disable this provided by latex-suite, but I
do not know what it is without looking.  You can do it forcefully by
making a file after/ftplugin/tex.vim in your local vim directory
(usually ~/.vim/ or $VIM\vimfiles\ ) with the line

:iunmap )

HTH                                     --Benji Fisher

Reply via email to