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

Re: Changing the default syntax for a file

Expand Messages
  • Chouser
    Dave D wrote: [Wed May 2 2001, 11:43:51AM EDT] ... Try adding this to your .vimrc: au BufRead *.tmpl set syntax=html --Chouser
    Message 1 of 3 , May 2, 2001
    • 0 Attachment
      Dave D wrote: [Wed May 2 2001, 11:43:51AM EDT]
      > My question is how can I get vim to automagically use the html syntax
      > highlighting for the .tmpl files?

      Try adding this to your .vimrc:

      au BufRead *.tmpl set syntax=html

      --Chouser
    • Dave D
      ... Worked like a charm! Thanks.
      Message 2 of 3 , May 2, 2001
      • 0 Attachment
        >Try adding this to your .vimrc:
        >
        >au BufRead *.tmpl set syntax=html

        Worked like a charm! Thanks.
      Your message has been successfully submitted and would be delivered to recipients shortly.