vim: Add tabbed window option.
parent
ed702209ce
commit
2c08e9a089
|
@ -1,5 +1,5 @@
|
||||||
USING: core-foundation.launch-services editors editors.vim
|
USING: editors editors.vim io.pathnames io.standard-paths kernel
|
||||||
io.pathnames io.standard-paths kernel namespaces ;
|
namespaces ;
|
||||||
IN: editors.macvim
|
IN: editors.macvim
|
||||||
|
|
||||||
TUPLE: macvim < vim ;
|
TUPLE: macvim < vim ;
|
||||||
|
|
|
@ -11,6 +11,8 @@ HOOK: find-vim-path editor-class ( -- path )
|
||||||
|
|
||||||
HOOK: vim-ui? editor-class ( -- ? )
|
HOOK: vim-ui? editor-class ( -- ? )
|
||||||
|
|
||||||
|
SYMBOL: vim-tabs?
|
||||||
|
|
||||||
M: vim vim-ui? f ;
|
M: vim vim-ui? f ;
|
||||||
|
|
||||||
M: vim find-vim-path "vim" ?find-in-path ;
|
M: vim find-vim-path "vim" ?find-in-path ;
|
||||||
|
@ -22,8 +24,9 @@ M: vim editor-command ( file line -- command )
|
||||||
[
|
[
|
||||||
actual-vim-path dup string? [ , ] [ % ] if
|
actual-vim-path dup string? [ , ] [ % ] if
|
||||||
vim-ui? [ "-g" , ] when
|
vim-ui? [ "-g" , ] when
|
||||||
[ , ] [ number>string "+" prepend , ] bi*
|
vim-tabs? get [ "--remote-tab-silent" , ] when
|
||||||
|
number>string "+" prepend ,
|
||||||
|
,
|
||||||
] { } make ;
|
] { } make ;
|
||||||
|
|
||||||
M: vim editor-detached? f ;
|
M: vim editor-detached? f ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue