2007-12-09 19:16:24 -05:00
|
|
|
USING: io.backend io.files kernel math math.parser
|
2007-12-09 19:35:19 -05:00
|
|
|
namespaces editors.vim sequences system ;
|
2007-09-20 18:09:08 -04:00
|
|
|
IN: editors.gvim
|
|
|
|
|
|
|
|
TUPLE: gvim ;
|
|
|
|
|
2007-12-09 19:16:24 -05:00
|
|
|
HOOK: gvim-path io-backend ( -- path )
|
|
|
|
|
|
|
|
|
2007-09-20 18:09:08 -04:00
|
|
|
M: gvim vim-command ( file line -- string )
|
2007-12-09 19:16:24 -05:00
|
|
|
[ "\"" % 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
|
2007-12-09 19:16:24 -05:00
|
|
|
|
|
|
|
USE-IF: unix? editors.gvim.unix
|
|
|
|
USE-IF: windows? editors.gvim.windows
|