summaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-17 12:22:32 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-17 12:22:32 +0100
commit369b6f57c426b4bf39b4a0cac8d21ed1b5f7de4d (patch)
treee17bd70cbc1daba927a2b2e1a1cb6b108c058c2f /runtime/filetype.vim
parent97d62d4321df358665e2e6504aad8ac2ba7fd841 (diff)
downloadvim-git-369b6f57c426b4bf39b4a0cac8d21ed1b5f7de4d.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 9c9c808b4..dba6784e1 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -676,8 +676,14 @@ au BufNewFile,BufRead *.dtd setf dtd
" DTS/DSTI (device tree files)
au BufNewFile,BufRead *.dts,*.dtsi setf dts
-" EDIF (*.edf,*.edif,*.edn,*.edo)
-au BufNewFile,BufRead *.ed\(f\|if\|n\|o\) setf edif
+" EDIF (*.edf,*.edif,*.edn,*.edo) or edn
+au BufNewFile,BufRead *.ed\(f\|if\|o\) setf edif
+au BufNewFile,BufRead *.edn
+ \ if getline(1) =~ '^\s*(\s*edif\>' |
+ \ setf edif |
+ \ else |
+ \ setf clojure |
+ \ endif
" EditorConfig (close enough to dosini)
au BufNewFile,BufRead .editorconfig setf dosini