]> gitweb.factorcode.org Git - factor.git/commitdiff
vim: Add tabbed window option.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 28 Jun 2015 02:18:22 +0000 (19:18 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 29 Jun 2015 17:35:36 +0000 (10:35 -0700)
basis/editors/macvim/macvim.factor
basis/editors/vim/vim.factor

index 62788330767706d2113209515da89fecf063bfbd..ba3726b6aaf996d13e2ab5f25295c4f859435ea1 100644 (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 ;
index 7aa46499d78a2056429edfe61da399390eeba1e9..3040980baf414dbf8a8886324870569d7a8dabed 100644 (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 ;
-