factor/basis/editors/macvim/macvim.factor

20 lines
416 B
Factor
Raw Normal View History

2015-06-27 22:18:22 -04:00
USING: editors editors.vim io.pathnames io.standard-paths kernel
namespaces ;
2008-09-11 21:15:48 -04:00
IN: editors.macvim
TUPLE: macvim < vim ;
2015-06-01 17:39:30 -04:00
T{ macvim } editor-class set-global
2008-09-11 21:15:48 -04:00
: find-macvim-bundle-path ( -- path/f )
"org.vim.MacVim" find-native-bundle [
"Contents/MacOS/Vim" append-path
] [
f
] if* ;
2015-06-01 17:39:30 -04:00
M: macvim find-vim-path find-macvim-bundle-path ;
M: macvim vim-ui? t ;
2015-06-01 17:39:30 -04:00
M: macvim editor-detached? t ;