Hi Steve,

Not sure why they were detected differently (different extensions?), but you
can see what type vi has detected using ":set filetype". This should show
you the filetype recognized if any, for which the syntax colouring rules
were applied.

Am not sure if procmailrc files are recognized purely by extension or based
on some initial text in the file (as in bash script, for eg) though.

Regards,
Nikhil

~~~~
Nikhil Krishnan Mundayur


On Thu, Oct 1, 2009 at 4:35 PM, steve <[email protected]> wrote:

>
> So Im trying to solve a problem with procmail (anybody and expert??)
> anyway in trying to diagnose the problem I can get one .procmailrc
> file to work and another to not work. I have noticed that in vi (yes
> Im living in the past I guess, but I love it), I have noticed that in
> the file that does work the file is all white but the file that is not
> working has coloured text in it. eg it is being detected as a certain
> type of file and colouring is based on this. (I hope you know what I
> mean.)
>
> Anyway, I'm wondering if this is telling me that one file is being
> seen as one type of file where as the other file is being seen as
> another type of file and maybe thats why its not being working
> properly. However when I do a file command on both the files, the one
> that works and does not work they both come up as
>
> ASCII English text, with CRLF, LF line terminators
>
> Why am I getting no colour in one (the one that works oddly enough)
> and colour in the other, despite the fact that they seem to be the
> same type of file. (I do understand just to be clear what the colour
> thing is eg script files or what ever have various colours associated
> with them a lot like say a C compiler for example, sort of.
>
> Thanks.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to