factor/basis/editors/macvim/macvim.factor

20 lines
445 B
Factor
Raw Normal View History

USING: core-foundation.launch-services editors.vim io.pathnames
io.standard-paths kernel namespaces ;
2008-09-11 21:15:48 -04:00
IN: editors.macvim
SINGLETON: macvim
macvim \ vim-editor 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* ;
M: macvim find-vim-path
find-macvim-bundle-path "mvim" or ;
M: macvim vim-detached? t ;
M: macvim vim-ui? t ;