]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/gvim/gvim.factor
ad6fb65cfbde06e7a7f41530e522dfc4419ef95d
[factor.git] / basis / editors / gvim / gvim.factor
1 USING: io.backend io.files kernel math math.parser
2 namespaces sequences system combinators
3 editors.vim vocabs.loader make ;
4 IN: editors.gvim
5
6 SINGLETON: gvim
7
8 HOOK: gvim-path io-backend ( -- path )
9
10 M: gvim vim-command ( file line -- string )
11     [ gvim-path , swap , "+" swap number>string append , ] { } make ;
12
13 gvim vim-editor set-global
14
15 {
16     { [ os unix? ] [ "editors.gvim.unix" ] }
17     { [ os windows? ] [ "editors.gvim.windows" ] }
18 } cond require