Allow vim-polyglot to load in non-compatible mode

This commit is contained in:
Adam Stankiewicz
2020-10-19 02:25:59 +02:00
parent 3618414fad
commit c3e825027d
6 changed files with 28 additions and 15 deletions

View File

@@ -848,15 +848,7 @@ def generate_plugins(packages)
end
output << " \\}\n\n"
output << <<~EOS
func! polyglot#sleuth#GlobForFiletype(type)
return get(s:globs, a:type, '')
endfunc
EOS
File.write('autoload/polyglot/sleuth.vim', output)
inject_code('autoload/polyglot/sleuth.vim', output)
end
def process_list(list, extras)

View File

@@ -7,7 +7,6 @@ def run_script(src)
end
def run_vimscript(src)
wrapper = <<~EOF
vim --clean --not-a-term -u <(cat <<- "EOM"
set nocompatible