Loading ...
Sorry, an error occurred while loading the content.

15530Re: when is filetype set?

Expand Messages
  • Michael P. Soulier
    Jan 3, 2001
      On Wed, Jan 03, 2001 at 03:10:54PM +0530, Janakiraman .S wrote:

      > I dont think so. You will need to execute this each time you load a
      > buffer.
      > Also syn off turns syntax highlighting off on all buffers.
      > syn clear will clear it for the current buffer alone.


      > I suggest using autocommands to achieve what you want.
      > Something like
      > " Set up your defaults for all files
      > syn on
      > au FileType * se cindent nu
      > " Specific to files of filetype mail
      > au FileType mail syn clear
      > au FileType mail se tw=78 noai

      Ok, I had to tweak this a bit because it was conflicting with other
      settings, but I believe it's finally working.

      Thanks for your help, and I'll read up the docs again. ;-)


      Michael P. Soulier <msoulier@...>
      "...the word HACK is used as a verb to indicate a massive amount
      of nerd-like effort." -Harley Hahn, A Student's Guide to UNIX
      PGP Public Key: http://www.storm.ca/~msoulier/email.phtml
    • Show all 5 messages in this topic