summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
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