factor/basis/editors/vim/vim.factor

24 lines
504 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: definitions io io.launcher kernel math math.parser
2008-09-12 11:36:00 -04:00
namespaces parser prettyprint sequences editors accessors
make ;
2007-09-20 18:09:08 -04:00
IN: editors.vim
SYMBOL: vim-path
SYMBOL: vim-editor
2008-06-14 05:06:43 -04:00
HOOK: vim-command vim-editor ( file line -- array )
2007-09-20 18:09:08 -04:00
2008-06-14 05:11:30 -04:00
SINGLETON: vim
2007-09-20 18:09:08 -04:00
2008-06-14 05:06:43 -04:00
M: vim vim-command
2008-01-24 02:50:40 -05:00
[
vim-path get , swap , "+" swap number>string append ,
] { } make ;
2007-09-20 18:09:08 -04:00
: vim-location ( file line -- )
2008-06-14 05:21:52 -04:00
vim-command try-process ;
2007-09-20 18:09:08 -04:00
"vim" vim-path set-global
[ vim-location ] edit-hook set-global
2008-06-14 05:11:30 -04:00
vim vim-editor set-global