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
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
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
|
|
|
|
2011-10-30 19:10:27 -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
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
M: macvim find-vim-path find-macvim-bundle-path ;
|
2011-10-29 18:27:08 -04:00
|
|
|
|
2011-10-30 19:10:27 -04:00
|
|
|
M: macvim vim-ui? t ;
|
2015-06-01 17:39:30 -04:00
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
M: macvim editor-detached? t ;
|