diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-12-29 23:40:05 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-12-29 23:40:05 +0100 |
commit | 1150adc4db99fc4f88f0a5ebebe2f9033784209c (patch) | |
tree | 35aa09f7e5c253e06e1d7b95228e5e418b65e640 /autoload | |
parent | 47dcae9131ac32cabf92f49093f044732a412450 (diff) | |
download | vim-polyglot-1150adc4db99fc4f88f0a5ebebe2f9033784209c.tar.gz vim-polyglot-1150adc4db99fc4f88f0a5ebebe2f9033784209c.zip |
Fix detecting conf filetype, closes #641
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/polyglot/shebang.vim | 5 |
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 |