Mercurial > vim
diff runtime/filetype.vim @ 6051:0efec12f52ac
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 10 Jul 2014 22:01:47 +0200 |
parents | 92751673cc37 |
children | 32a77cc160d9 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2014 Jun 12 +" Last Change: 2014 Jul 09 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -864,7 +864,7 @@ func! s:FThtml() setf xhtml return endif - if getline(n) =~ '{%\s*\(extends\|block\)\>' + if getline(n) =~ '{%\s*\(extends\|block\|load\)\>' setf htmldjango return endif @@ -1649,6 +1649,20 @@ else au BufNewFile,BufRead *.rnw,*.snw setf rnoweb endif +" R Markdown file +if has("fname_case") + au BufNewFile,BufRead *.Rmd,*.rmd,*.Smd,*.smd setf rmd +else + au BufNewFile,BufRead *.rmd,*.smd setf rmd +endif + +" R reStructuredText file +if has("fname_case") + au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst setf rrst +else + au BufNewFile,BufRead *.rrst,*.srst setf rrst +endif + " Rexx, Rebol or R au BufNewFile,BufRead *.r,*.R call s:FTr() @@ -2664,7 +2678,7 @@ au BufNewFile,BufRead zsh*,zlog* call s " Plain text files, needs to be far down to not override others. This avoids " the "conf" type being used if there is a line starting with '#'. -au BufNewFile,BufRead *.txt,*.text setf text +au BufNewFile,BufRead *.txt,*.text,README setf text " Use the filetype detect plugins. They may overrule any of the previously