]> gitweb.factorcode.org Git - factor.git/commitdiff
Adding support for MacVim.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 12 Sep 2008 01:15:48 +0000 (18:15 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 12 Sep 2008 01:15:48 +0000 (18:15 -0700)
basis/editors/macvim/authors.txt [new file with mode: 0644]
basis/editors/macvim/macvim.factor [new file with mode: 0755]
basis/editors/macvim/summary.txt [new file with mode: 0644]
basis/editors/macvim/tags.txt [new file with mode: 0644]

diff --git a/basis/editors/macvim/authors.txt b/basis/editors/macvim/authors.txt
new file mode 100644 (file)
index 0000000..e091bb8
--- /dev/null
@@ -0,0 +1 @@
+John Benediktsson
diff --git a/basis/editors/macvim/macvim.factor b/basis/editors/macvim/macvim.factor
new file mode 100755 (executable)
index 0000000..b5f864d
--- /dev/null
@@ -0,0 +1,13 @@
+USING: definitions io.launcher kernel math math.parser parser
+namespaces prettyprint editors make ;
+
+IN: editors.macvim
+
+: macvim-location ( file line -- )
+    drop
+    [ "open" , "-a" , "MacVim", , ] { } make
+    try-process ;
+
+[ macvim-location ] edit-hook set-global
+
+
diff --git a/basis/editors/macvim/summary.txt b/basis/editors/macvim/summary.txt
new file mode 100644 (file)
index 0000000..894d635
--- /dev/null
@@ -0,0 +1 @@
+MacVim editor integration
diff --git a/basis/editors/macvim/tags.txt b/basis/editors/macvim/tags.txt
new file mode 100644 (file)
index 0000000..6bf6830
--- /dev/null
@@ -0,0 +1 @@
+unportable