summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-09 17:08:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-09 17:08:29 +0200
commit2fe310256e82ec8c4c160ebc171fe18c8da06330 (patch)
treea39a7ae1dcabdc76f22a3a2a63ad42c42a0d6f76
parent2e1a9806326445c5cbdbb3b0cc7d82c7a16881b0 (diff)
downloadvim-polyglot-2fe310256e82ec8c4c160ebc171fe18c8da06330.tar.gz
vim-polyglot-2fe310256e82ec8c4c160ebc171fe18c8da06330.zip
Transcompile ..= operator to support old vims, fixes #542
-rw-r--r--ftplugin/yaml.vim2
-rwxr-xr-xscripts/build4
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