factor/extra/editors/gvim/gvim.factor

19 lines
469 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
editors.vim editors.gvim.backend vocabs.loader ;
2007-09-20 18:09:08 -04:00
IN: editors.gvim
TUPLE: gvim ;
M: gvim vim-command ( file line -- string )
[ "\"" % gvim-path % "\" \"" % swap % "\" +" % # ] "" make ;
t vim-detach set-global ! don't block the ui
2007-09-20 18:09:08 -04:00
T{ gvim } vim-editor set-global
{
{ [ unix? ] [ "editors.gvim.unix" ] }
{ [ windows? ] [ "editors.gvim.windows" ] }
} cond require