]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/macvim/macvim.factor
editors: adding EDITOR: syntax and use classes instead of tuples
[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 SINGLETON: macvim
6
7 INSTANCE: macvim vim-base
8
9 editor-class get-global dup [ vim? not ] when
10 [ macvim editor-class set-global ] unless
11
12 : find-macvim-bundle-path ( -- path/f )
13     "org.vim.MacVim" find-native-bundle [
14         "Contents/MacOS/Vim" append-path
15     ] [
16         f
17     ] if* ;
18
19 M: macvim find-vim-path find-macvim-bundle-path ;
20
21 M: macvim vim-ui? t ;
22
23 M: macvim editor-detached? t ;