vim: Add tabbed window option.

db4
Doug Coleman 2015-06-27 19:18:22 -07:00
parent ed702209ce
commit 2c08e9a089
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
USING: core-foundation.launch-services editors editors.vim
io.pathnames io.standard-paths kernel namespaces ;
USING: editors editors.vim io.pathnames io.standard-paths kernel
namespaces ;
IN: editors.macvim
TUPLE: macvim < vim ;

View File

@ -11,6 +11,8 @@ HOOK: find-vim-path editor-class ( -- path )
HOOK: vim-ui? editor-class ( -- ? )
SYMBOL: vim-tabs?
M: vim vim-ui? f ;
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
vim-ui? [ "-g" , ] when
[ , ] [ number>string "+" prepend , ] bi*
vim-tabs? get [ "--remote-tab-silent" , ] when
number>string "+" prepend ,
,
] { } make ;
M: vim editor-detached? f ;