2011-10-29 18:27:08 -04:00
|
|
|
USING: editors.vim environment fry io.files io.pathnames kernel
|
|
|
|
|
namespaces sequences splitting ;
|
2008-09-11 21:15:48 -04:00
|
|
|
IN: editors.macvim
|
|
|
|
|
|
2011-10-29 18:10:42 -04:00
|
|
|
SINGLETON: macvim
|
|
|
|
|
macvim \ vim-editor set-global
|
2008-09-11 21:15:48 -04:00
|
|
|
|
2011-10-29 18:27:08 -04:00
|
|
|
: find-binary-path ( string -- path/f )
|
|
|
|
|
[ "PATH" os-env ":" split ] dip '[ _ append-path exists? ] find nip ;
|
|
|
|
|
|
|
|
|
|
M: macvim find-vim-path "mvim" find-binary-path { "open" "-a" "MacVim" } or ;
|
2011-10-29 18:10:42 -04:00
|
|
|
M: macvim vim-detached? t ;
|
2011-10-29 18:27:08 -04:00
|
|
|
M: macvim vim-open-line? f ;
|