On 23/01/2015 10:41 a.m., Cesar Romani wrote:
> On 22/01/2015 05:06 p.m., Charles Campbell wrote:
> > Cesar Romani wrote:
> >> I'm using vim 7.4.589 on Windows 7.
> >>
> >> I'm editing an html file and type '()' (without quotes)
> >> then go back one place and try to type 'a=' (without quotes), then I
> get
> >> immediately after the closing parenthesis!
> >> I have to go back one place to continue to type after '='
> >>
> >> I discovered that the cause of it is the imap:
> >> ino<silent> = =<c-r>=AutoAlign(1)<cr>
> >>
> >> on AutoAlign.vim (v15a)
> >>
> >> If I do 'iunmap =' I don't get this problem.
> >>
> >> Many thanks in advance,
> >>
> > Hello!
> >
> > Using C, the cursor is left after the = sign. The
> > ftplugin/html/AutoAlign.vim doesn't have any maps to handle '=', so I
> > don't see why it'd be involved. Did you modify the distributed
> > ftplugin/html/AutoAlign.vim file?
> >
> > Ex. using C
> > a=1234;
> > (); (then perform<esc>0ib=<esc>)
> >
> > this yields
> > a = 1234;
> > b = ();
> >
> > with the cursor immediately following the "b =".
> >
> > Using "iunmap =" prevents the problem essentially by de-activating
> > AutoAlign, so its not particularly surprising that you are no longer
> > experiencing your issue.
> >
> > Regards,
> > Chip Campbell
>
> I didn't modify anything. The file involved is
> ftplugin/vim/AutoAlign.vim and it contains the line:
> ino <silent> = =<c-r>=AutoAlign(1)<cr>
>
> that's what I got when I called ':verbose imap ='
>
> My html file is of the following form:
> --------------------
> <!-- vim: set ic tw=72 :-->
> <!DOCTYPE html>
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
> ()
> (a=)
> </body>
> </html>
> --------------------
>
> and apparently, because of the first line, it is also calling
> ftplugin/vim/AutoAlign.vim
I also discovered that the same problem happens when editing a latex
file, i.e. when typing () and then typing = inside the parentheses, the
cursor gets after the closing parenthesis.
How can I disable this? I tried to put 'iunmap =' on
vimfiles\after\plugin\tex.vim but it is of no use.
Many thanks in advance,
--
Cesar
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, January 27, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment