factor/basis/editors/gvim/gvim.factor

19 lines
455 B
Factor
Raw Normal View History

USING: io.backend io.files kernel math math.parser
2008-01-13 12:58:29 -05:00
namespaces sequences system combinators
2008-09-12 11:36:00 -04:00
editors.vim vocabs.loader make ;
2007-09-20 18:09:08 -04:00
IN: editors.gvim
2008-06-14 05:11:30 -04:00
SINGLETON: gvim
2007-09-20 18:09:08 -04:00
2008-09-01 13:00:14 -04:00
HOOK: gvim-path io-backend ( -- path )
2007-09-20 18:09:08 -04:00
M: gvim vim-command ( file line -- string )
2008-06-14 05:11:30 -04:00
[ gvim-path , swap , "+" swap number>string append , ] { } make ;
2008-06-14 05:11:30 -04:00
gvim vim-editor set-global
{
2008-04-02 19:25:33 -04:00
{ [ os unix? ] [ "editors.gvim.unix" ] }
{ [ os windows? ] [ "editors.gvim.windows" ] }
} cond require