VI behavior strange in FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
}


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux