From 1150adc4db99fc4f88f0a5ebebe2f9033784209c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 29 Dec 2020 23:40:05 +0100 Subject: Fix detecting conf filetype, closes #641 --- autoload/polyglot/shebang.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autoload') diff --git a/autoload/polyglot/shebang.vim b/autoload/polyglot/shebang.vim index ef6bc0ed..a8f10348 100644 --- a/autoload/polyglot/shebang.vim +++ b/autoload/polyglot/shebang.vim @@ -449,6 +449,11 @@ func! polyglot#shebang#VimDetect() endif + if line1 =~ '^# ' || getline(2) =~ '^# ' || getline(3) =~ '^# ' || getline(4) =~ '^# ' || getline(5) =~ '^# ' + setf FALLBACK conf + return 1 + endif + return 1 endfunc -- cgit v1.2.3