]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/gvim/gvim.factor
Merge branch 'master' into experimental
[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 ! This code builds on the code in editors.vim; see there for
7 ! more information.
8
9 SINGLETON: gvim
10
11 HOOK: gvim-path io-backend ( -- path )
12
13 M: gvim vim-command ( file line -- string )
14     [ gvim-path , "+" swap number>string append , , ] { } make ;
15
16 gvim vim-editor set-global
17
18 {
19     { [ os unix? ] [ "editors.gvim.unix" ] }
20     { [ os windows? ] [ "editors.gvim.windows" ] }
21 } cond require