Clean up editors.vim/gvim a bit

db4
Slava Pestov 2008-06-14 04:11:30 -05:00
parent 5692d28ce5
commit b8380711e4
2 changed files with 5 additions and 5 deletions

View File

@ -3,14 +3,14 @@ namespaces sequences system combinators
editors.vim editors.gvim.backend vocabs.loader ;
IN: editors.gvim
TUPLE: gvim ;
SINGLETON: gvim
M: gvim vim-command ( file line -- string )
[ "\"" % gvim-path % "\" \"" % swap % "\" +" % # ] "" make ;
[ gvim-path , swap , "+" swap number>string append , ] { } make ;
t vim-detach set-global ! don't block the ui
T{ gvim } vim-editor set-global
gvim vim-editor set-global
{
{ [ os unix? ] [ "editors.gvim.unix" ] }

View File

@ -8,7 +8,7 @@ SYMBOL: vim-detach
SYMBOL: vim-editor
HOOK: vim-command vim-editor ( file line -- array )
TUPLE: vim ;
SINGLETON: vim
M: vim vim-command
[
@ -23,4 +23,4 @@ M: vim vim-command
"vim" vim-path set-global
[ vim-location ] edit-hook set-global
T{ vim } vim-editor set-global
vim vim-editor set-global