]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/editors/macvim/macvim.factor
editors: adding EDITOR: syntax and use classes instead of tuples
[factor.git] / basis / editors / macvim / macvim.factor
index ef4427fb901f9604c614f37cf768f1b4dfeee734..cc3267fdb67ca2d96555f3a31dc0af003e180d94 100644 (file)
@@ -2,9 +2,12 @@ USING: editors editors.vim io.pathnames io.standard-paths kernel
 namespaces ;
 IN: editors.macvim
 
-TUPLE: macvim < vim ;
+SINGLETON: macvim
 
-editor-class [ T{ macvim } ] initialize
+INSTANCE: macvim vim-base
+
+editor-class get-global dup [ vim? not ] when
+[ macvim editor-class set-global ] unless
 
 : find-macvim-bundle-path ( -- path/f )
     "org.vim.MacVim" find-native-bundle [