summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-12-29 23:40:05 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-12-29 23:40:05 +0100
commit1150adc4db99fc4f88f0a5ebebe2f9033784209c (patch)
tree35aa09f7e5c253e06e1d7b95228e5e418b65e640 /autoload
parent47dcae9131ac32cabf92f49093f044732a412450 (diff)
downloadvim-polyglot-1150adc4db99fc4f88f0a5ebebe2f9033784209c.tar.gz
vim-polyglot-1150adc4db99fc4f88f0a5ebebe2f9033784209c.zip
Fix detecting conf filetype, closes #641
Diffstat (limited to 'autoload')
-rw-r--r--autoload/polyglot/shebang.vim5
1 files changed, 5 insertions, 0 deletions
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