[prev in list] [next in list] [prev in thread] [next in thread]
List: vim-dev
Subject: Re: file type rhtml displayed as html
From: Bram Moolenaar <Bram () moolenaar ! net>
Date: 2005-01-24 18:25:45
Message-ID: 200501241825.j0OIPjXH057655 () moolenaar ! net
[Download RAW message or body]
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@Moolenaar.net -- 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 ///
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic