Transcompile ..= operator to support old vims, fixes #542

This commit is contained in:
Adam Stankiewicz
2020-09-09 17:08:29 +02:00
parent 2e1a980632
commit 2fe310256e
2 changed files with 4 additions and 2 deletions

View File

@@ -175,7 +175,9 @@ def copy_file(package, src, dest)
else
output << "if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '#{name}') == -1\n\n"
end
IO.copy_stream(input, output)
contents = File.read(input)
contents.gsub!(' ..= ', ' .= ')
output << contents
output << "\nendif\n"
end
end