19 lines
		
	
	
		
			469 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			469 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
USING: io.backend io.files kernel math math.parser
 | 
						|
namespaces sequences system combinators
 | 
						|
editors.vim editors.gvim.backend vocabs.loader ;
 | 
						|
IN: editors.gvim
 | 
						|
 | 
						|
TUPLE: gvim ;
 | 
						|
 | 
						|
M: gvim vim-command ( file line -- string )
 | 
						|
    [ "\"" % gvim-path % "\" \"" % swap % "\" +" % # ] "" make ;
 | 
						|
 | 
						|
t vim-detach set-global ! don't block the ui
 | 
						|
 | 
						|
T{ gvim } vim-editor set-global
 | 
						|
 | 
						|
{
 | 
						|
    { [ unix? ] [ "editors.gvim.unix" ] }
 | 
						|
    { [ windows? ] [ "editors.gvim.windows" ] }
 | 
						|
} cond require
 |