summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:53:26 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:53:26 +0100
commit08ea94e01188531e819e5d6bea5c84a773b4eb98 (patch)
tree595c73c1476e2fdc8458529907efea083a405f68 /autoload
parentba7a783c7f3d3c923ef151e4d3e99e087831ef69 (diff)
downloadvim-polyglot-08ea94e01188531e819e5d6bea5c84a773b4eb98.tar.gz
vim-polyglot-08ea94e01188531e819e5d6bea5c84a773b4eb98.zip
Add elm support, closes #81
Diffstat (limited to 'autoload')
-rw-r--r--autoload/elm/io.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/autoload/elm/io.vim b/autoload/elm/io.vim
new file mode 100644
index 00000000..509a8f6a
--- /dev/null
+++ b/autoload/elm/io.vim
@@ -0,0 +1,12 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
+
+" System IO
+
+" Craft a system command and run it, returning the output.
+function! elm#io#system(program, args)
+ let cmd ="which " . a:program . " && " . a:program . " " . a:args
+ return system(cmd)
+endfunction
+
+
+endif