mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
Transcompile ..= operator to support old vims, fixes #542
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user