summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-03 19:52:15 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-03 19:52:15 +0100
commitda1c11c6411182e9a4bd4374e3fb8851fef77113 (patch)
tree5701e62b06c7649e3443947f9e46ca4860150298 /runtime
parent9691f82f862ed18c2e3e48f9d2cd902bb947f803 (diff)
downloadvim-git-da1c11c6411182e9a4bd4374e3fb8851fef77113.tar.gz
patch 8.1.0507: .raml files not properly detectedv8.1.0507
Problem: .raml files not properly detected. Solution: Recognize .raml as raml instead of yaml. (closes #3594)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim11
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index af27c85d8..72a756d84 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1129,7 +1129,7 @@ au BufNewFile,BufRead *.dpr setf pascal
" PDF
au BufNewFile,BufRead *.pdf setf pdf
-" PCMK - HAE - crm configure edit
+" PCMK - HAE - crm configure edit
au BufNewFile,BufRead *.pcmk setf pcmk
" Perl
@@ -1893,8 +1893,11 @@ au BufNewFile,BufRead *.yy,*.yxx,*.y++ setf yacc
" Yacc or racc
au BufNewFile,BufRead *.y call dist#ft#FTy()
-" Yaml or Raml
-au BufNewFile,BufRead *.yaml,*.yml,*.raml setf yaml
+" Yaml
+au BufNewFile,BufRead *.yaml,*.yml setf yaml
+
+" Raml
+au BufNewFile,BufRead *.raml setf raml
" yum conf (close enough to dosini)
au BufNewFile,BufRead */etc/yum.conf setf dosini
@@ -2107,7 +2110,7 @@ au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
au BufNewFile,BufRead *.text,README setf text
" Help files match *.txt but should have a last line that is a modeline.
-au BufNewFile,BufRead *.txt
+au BufNewFile,BufRead *.txt
\ if getline('$') !~ 'vim:.*ft=help'
\| setf text
\| endif