1 USING: editors.vim io.backend io.standard-paths kernel
2 namespaces system vocabs editors ;
5 ! This code builds on the code in editors.vim; see there for
10 INSTANCE: gvim vim-base
12 editor-class get-global dup [ vim? not ] when
13 [ gvim editor-class set-global ] unless
15 HOOK: find-gvim-path io-backend ( -- path )
17 M: object find-gvim-path f ;
19 M: windows find-gvim-path
20 { "vim" } "gvim.exe" find-in-applications ;
23 find-gvim-path [ "gvim" ?find-in-path ] unless* ;
27 M: gvim editor-detached? t ;