From 2fe310256e82ec8c4c160ebc171fe18c8da06330 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 9 Sep 2020 17:08:29 +0200 Subject: Transcompile ..= operator to support old vims, fixes #542 --- ftplugin/yaml.vim | 2 +- scripts/build | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim index 2e9728bd..261d71ca 100644 --- a/ftplugin/yaml.vim +++ b/ftplugin/yaml.vim @@ -19,7 +19,7 @@ setlocal comments=:# commentstring=#\ %s expandtab setlocal formatoptions-=t formatoptions+=croql if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0 - let b:undo_ftplugin ..= " sw< sts<" + let b:undo_ftplugin .= " sw< sts<" setlocal shiftwidth=2 softtabstop=2 endif diff --git a/scripts/build b/scripts/build index 4a36bbac..69993374 100755 --- a/scripts/build +++ b/scripts/build @@ -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 -- cgit v1.2.3