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

Re: file type rhtml displayed as html

Expand Messages
  • Bram Moolenaar
    ... Try this: ... *************** *** 595,602 **** Tilde (must be before HTML) au BufNewFile,BufRead *.t.html setf tilde ! HTML (.shtml and .stm for
    Message 1 of 2 , Jan 24, 2005
    • 0 Attachment
      solo turn wrote:

      > would it be possible to get files with ending "rhtml" (ruby html)
      > shown as type "html" by default?

      Try this:

      *** runtime/filetype.vim~ Fri Dec 31 16:51:56 2004
      --- runtime/filetype.vim Mon Jan 24 19:04:42 2005
      ***************
      *** 595,602 ****
      " Tilde (must be before HTML)
      au BufNewFile,BufRead *.t.html setf tilde

      ! " HTML (.shtml and .stm for server side)
      ! au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call <SID>FTCheck_html()

      " Distinguish between HTML and XHTML
      fun! <SID>FTCheck_html()
      --- 595,602 ----
      " Tilde (must be before HTML)
      au BufNewFile,BufRead *.t.html setf tilde

      ! " HTML (.shtml and .stm for server side, .rhtml for Ruby html)
      ! au BufNewFile,BufRead *.html,*.htm,*.shtml,*.rhtml,*.stm call <SID>FTCheck_html()

      " Distinguish between HTML and XHTML
      fun! <SID>FTCheck_html()

      --
      Every time I lose weight, it finds me again!

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.