1 USING: editors io.standard-paths kernel make math.parser
2 namespaces sequences strings ;
6 T{ vim } editor-class set-global
10 HOOK: find-vim-path editor-class ( -- path )
12 HOOK: vim-ui? editor-class ( -- ? )
18 M: vim find-vim-path "vim" ?find-in-path ;
20 : actual-vim-path ( -- path )
21 \ vim-path get [ find-vim-path ] unless* ;
25 actual-vim-path dup string? [ , ] [ % ] if
26 vim-ui? [ "-g" , ] when
27 vim-tabs? get [ "--remote-tab-silent" , ] when
28 number>string "+" prepend ,
32 M: vim editor-detached? f ;