From c3e825027ddabecf18370df61c1da4018f017b7b Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 19 Oct 2020 02:25:59 +0200 Subject: Allow vim-polyglot to load in non-compatible mode --- scripts/build | 10 +--------- scripts/test | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'scripts') diff --git a/scripts/build b/scripts/build index d77a556a..b3867b97 100755 --- a/scripts/build +++ b/scripts/build @@ -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) diff --git a/scripts/test b/scripts/test index ae408063..f726d226 100755 --- a/scripts/test +++ b/scripts/test @@ -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 -- cgit v1.2.3