diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-19 02:25:59 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-19 02:25:59 +0200 |
commit | c3e825027ddabecf18370df61c1da4018f017b7b (patch) | |
tree | 8d60a5b049a927d6aedb938e25612aa4e7ba14aa /scripts | |
parent | 3618414fad6ac488e89895810d3a3da3c3c1c6fd (diff) | |
download | vim-polyglot-c3e825027ddabecf18370df61c1da4018f017b7b.tar.gz vim-polyglot-c3e825027ddabecf18370df61c1da4018f017b7b.zip |
Allow vim-polyglot to load in non-compatible mode
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build | 10 | ||||
-rwxr-xr-x | scripts/test | 1 |
2 files changed, 1 insertions, 10 deletions
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 |