From 2bde381723b9604dccb5b9dbe4588a0251ad8544 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 22 Jan 2016 09:08:30 +0100 Subject: Add nim support --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect/polyglot.vim') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 521eced7..52b1768d 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -277,6 +277,10 @@ au BufRead,BufNewFile */etc/nginx/* set ft=nginx au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx au BufRead,BufNewFile nginx.conf set ft=nginx endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 + +au BufNewFile,BufRead *.nim set filetype=nim +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 autocmd BufNewFile,BufRead *.nix setfiletype nix -- cgit v1.2.3