]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/editors/gvim/gvim.factor
editors: adding EDITOR: syntax and use classes instead of tuples
[factor.git] / basis / editors / gvim / gvim.factor
index 756fdcc7224765167e6b9effe1519b40c4fb18c0..f230ada60367f5e88e1fafe27d76bf2c0b7da613 100644 (file)
@@ -5,9 +5,12 @@ IN: editors.gvim
 ! This code builds on the code in editors.vim; see there for
 ! more information.
 
-TUPLE: gvim < vim ;
+SINGLETON: gvim
 
-editor-class [ T{ gvim } ] initialize
+INSTANCE: gvim vim-base
+
+editor-class get-global dup [ vim? not ] when
+[ gvim editor-class set-global ] unless
 
 HOOK: find-gvim-path io-backend ( -- path )