20 lines
		
	
	
		
			416 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			416 B
		
	
	
	
		
			Factor
		
	
	
| USING: editors editors.vim io.pathnames io.standard-paths kernel
 | |
| namespaces ;
 | |
| IN: editors.macvim
 | |
| 
 | |
| TUPLE: macvim < vim ;
 | |
| T{ macvim } editor-class set-global
 | |
| 
 | |
| : find-macvim-bundle-path ( -- path/f )
 | |
|     "org.vim.MacVim" find-native-bundle [
 | |
|         "Contents/MacOS/Vim" append-path
 | |
|     ] [
 | |
|         f
 | |
|     ] if* ;
 | |
| 
 | |
| M: macvim find-vim-path find-macvim-bundle-path ;
 | |
| 
 | |
| M: macvim vim-ui? t ;
 | |
| 
 | |
| M: macvim editor-detached? t ;
 |