Prasad Joshi wrote:
> I started VIM without giving the file name and started
> writing a C program ...
>
> I ran the command
> :filetype detect

The buffer has no file name, so detect can't guess that it is a
C program from the extension. Instead, it has to inspect the
contents and it reached a false conclusion.

I would just enter command:

    :set ft=c

There are some minor suggestions here:
http://vim.wikia.com/wiki/File_type_plugins

John


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

Reply via email to