]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/macvim/macvim.factor
ba3726b6aaf996d13e2ab5f25295c4f859435ea1
[factor.git] / basis / editors / macvim / macvim.factor
1 USING: editors editors.vim io.pathnames io.standard-paths kernel
2 namespaces ;
3 IN: editors.macvim
4
5 TUPLE: macvim < vim ;
6 T{ macvim } editor-class set-global
7
8 : find-macvim-bundle-path ( -- path/f )
9     "org.vim.MacVim" find-native-bundle [
10         "Contents/MacOS/Vim" append-path
11     ] [
12         f
13     ] if* ;
14
15 M: macvim find-vim-path find-macvim-bundle-path ;
16
17 M: macvim vim-ui? t ;
18
19 M: macvim editor-detached? t ;