2011-10-29 18:10:42 -04:00
|
|
|
USING: editors.vim io.backend kernel namespaces system
|
2011-11-02 14:23:41 -04:00
|
|
|
vocabs editors ;
|
2007-09-20 18:09:08 -04:00
|
|
|
IN: editors.gvim
|
|
|
|
|
2009-01-13 08:31:22 -05:00
|
|
|
! This code builds on the code in editors.vim; see there for
|
|
|
|
! more information.
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
TUPLE: gvim < vim ;
|
|
|
|
T{ gvim } editor-class set-global
|
2007-09-20 18:09:08 -04:00
|
|
|
|
2011-10-29 18:10:42 -04:00
|
|
|
HOOK: find-gvim-path io-backend ( -- path )
|
|
|
|
M: object find-gvim-path f ;
|
2007-12-09 19:16:24 -05:00
|
|
|
|
2011-10-29 18:10:42 -04:00
|
|
|
M: gvim find-vim-path find-gvim-path "gvim" or ;
|
2011-10-30 19:10:27 -04:00
|
|
|
M: gvim vim-ui? t ;
|
2011-10-31 14:53:07 -04:00
|
|
|
M: gvim editor-detached? t ;
|
2007-12-09 19:16:24 -05:00
|
|
|
|
2011-10-30 19:10:27 -04:00
|
|
|
os windows? [ "editors.gvim.windows" require ] when
|