Hi All,

I started VIM without giving the file name and started writing a C program.
After writing following lines

#include <stdio.h>

int main ()
{
    int i;

    for (i = 0; i < 10; i++) {
        printf ("i=%d", i);
    }
    return 0;
}


I ran the command
:filetype detect
:set filetype
filetype=conf

It detected the file as a configuration file.

If I don't type the first line              #include <stdio.h>
then it is unable to detect the file type.

I am not sure why is it not able to detect the file type.

Any clues!!!!!!!!

Thanks and Regards,
Prasad

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to