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

Re: [vim] Distinguishing Filetype

Expand Messages
  • Charles E. Campbell
    ... I see two suggestions for automatically loading your template. You probably also want to set the filetype since you don t want matlab: augroup Mathematica
    Message 1 of 4 , Nov 30, 2001
    • 0 Attachment
      Thus saith Alexander Wagner:
      > Just a question about filetypes. I use this for my ftplugins and it
      > works fine till I come to Mathematica. Conventionally Mathematicafiles
      > end up with .m. So do Mathlab which I don't use.

      I see two suggestions for automatically loading your template. You
      probably also want to set the filetype since you don't want matlab:

      augroup Mathematica
      au BufNewFile *.m set ft=mma|0r my_template.m
      augroup END

      Regards,
      C Campbell

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html
    Your message has been successfully submitted and would be delivered to recipients shortly.