VI behavior strange in FC3

Gavin Li gavinl at optech.ca
Wed Oct 26 13:17:41 UTC 2005


Hi,

I use VI to edit C code, but most (>90%) chance it breaks lines when I input
characters. Which config file do I have to change or it is a bug?
This is a sample of my code. I have no problem in RedHat7.3
/*
 * $Id: helloworld.c,v 1.1 2005/06/23 19:50:50 gavinl Exp $
 * vi: set cindent sw=4 ts=4 tw=4 :syntax on :
 */
#include
<stdio.h>
#include
<string.h>
int
main(int
        argc,
        char
        *argv)
{
    printf("hello
            world!\n");
    for
        (i=0;i<10;i++)
            {
                printf("i=%d\n",
                        i);
                return
                    0;
            }
    return
        0;
}




More information about the fedora-list mailing list