Hari G wrote:

> On Oct 27, 8:33 pm, lolilolicon <[email protected]> wrote:
> > This bug is tracked down to the line
> >
> >   filetype indent on
> >
> > in my ~/.vimrc; I opened the C file with `vim --noplugin foo.c' and
> > reduced my ~/.vimrc to contain only the above line.
> >
> > `:set filetype' outputs `filetype=c'.
> > `:filetype' outputs `filetype detection:ON  plugin:OFF  indent:ON'.
> >
> > To reproduce:
> >
> > 1. Put the following in .vimrc:
> >
> >   filetype indent on
> >
> > 2. Save the following as foo.c,
> >
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <xcb/xcb.h>
> >
> > int main(int argc, const char *argv[])
> > {
> >   /* geometric objects */
> >
> >   xcb_rectangle_t rectangles[] = {
> >     { 10, 50, 40, 20},
> >     { 80, 50, 10, 40}};
> >
> > }
> >
> > 3. Open foo.c with VIM, move cursor to the line
> >
> >     { 80, 50, 10, 40}};
> >
> > press `o'. VIM freezes, as if in a dead loop.
> >
> > 4. ^C to break out of the loop. A newline is inserted, the new line
> > is not indented.
> 
> The following change fixes this:

Thanks for the fix!

-- 
hundred-and-one symptoms of being an internet addict:
211. Your husband leaves you...taking the computer with him and you
     call him crying, and beg him to bring the computer back.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui