Remove dead code
parent
bd7bee867b
commit
5b4809e49d
|
@ -8,8 +8,6 @@ SINGLETON: gvim
|
|||
M: gvim vim-command ( file line -- string )
|
||||
[ gvim-path , swap , "+" swap number>string append , ] { } make ;
|
||||
|
||||
t vim-detach set-global ! don't block the ui
|
||||
|
||||
gvim vim-editor set-global
|
||||
|
||||
{
|
||||
|
|
|
@ -11,7 +11,5 @@ $nl
|
|||
"USE: vim"
|
||||
"\"c:\\\\program files\\\\vim\\\\vim70\\\\gvim\" vim-path set-global"
|
||||
}
|
||||
"On Unix, you may omit the last line if " { $snippet "\"vim\"" } " is in your " { $snippet "$PATH" } "."
|
||||
$nl
|
||||
"If you are running the terminal version of Vim, you want it to block Factor until exiting, but for GVim the opposite is desired, so that one can work in Factor and GVim concurrently. The " { $link vim-detach } " global variable can be set to " { $link t } " to detach the Vim process. The default is " { $link f } "." ;
|
||||
"On Unix, you may omit the last line if " { $snippet "\"vim\"" } " is in your " { $snippet "$PATH" } "." ;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ namespaces parser prettyprint sequences editors accessors ;
|
|||
IN: editors.vim
|
||||
|
||||
SYMBOL: vim-path
|
||||
SYMBOL: vim-detach
|
||||
|
||||
SYMBOL: vim-editor
|
||||
HOOK: vim-command vim-editor ( file line -- array )
|
||||
|
@ -16,10 +15,7 @@ M: vim vim-command
|
|||
] { } make ;
|
||||
|
||||
: vim-location ( file line -- )
|
||||
vim-command
|
||||
<process> swap >>command
|
||||
vim-detach get-global [ t >>detached ] when
|
||||
try-process ;
|
||||
vim-command try-process ;
|
||||
|
||||
"vim" vim-path set-global
|
||||
[ vim-location ] edit-hook set-global
|
||||
|
|
Loading…
Reference in New Issue