1 USING: editors io.standard-paths kernel make math.parser
2 namespaces sequences strings ;
7 editor-class [ T{ vim } ] initialize
11 HOOK: find-vim-path editor-class ( -- path )
13 HOOK: vim-ui? editor-class ( -- ? )
19 M: vim find-vim-path "vim" ?find-in-path ;
21 : actual-vim-path ( -- path )
22 \ vim-path get [ find-vim-path ] unless* ;
26 actual-vim-path dup string? [ , ] [ % ] if
27 vim-ui? [ "-g" , ] when
28 vim-tabs? get [ "--remote-tab-silent" , ] when
29 number>string "+" prepend ,
33 M: vim editor-detached? f ;