2006-08-03 02:45:30 -04:00
|
|
|
IN: vim
|
2006-10-05 13:39:13 -04:00
|
|
|
USING: definitions embedded io kernel namespaces parser prettyprint process
|
|
|
|
sequences ;
|
2006-08-03 02:45:30 -04:00
|
|
|
|
2006-10-20 17:55:52 -04:00
|
|
|
SYMBOL: vim-path
|
|
|
|
|
|
|
|
"vim" vim-path set-global
|
|
|
|
|
|
|
|
: vim-command ( file line -- string )
|
|
|
|
[ "\"" % vim-path get % "\" \"" % swap % "\" +" % # ] "" make ;
|
|
|
|
|
2006-08-25 00:02:30 -04:00
|
|
|
: vim-location ( file line -- )
|
2006-10-20 17:55:52 -04:00
|
|
|
vim-command run-process ;
|
2006-08-03 02:45:30 -04:00
|
|
|
|
|
|
|
: vim ( spec -- )
|
|
|
|
#! Edit the file in vim. Rerun the file if the timestamp is changed.
|
2006-10-20 17:55:52 -04:00
|
|
|
where first2 vim-location ;
|
2006-08-03 02:45:30 -04:00
|
|
|
|
2006-08-25 00:02:30 -04:00
|
|
|
[ vim-location ] edit-hook set-global
|
2006-08-24 23:19:22 -04:00
|
|
|
|
2006-08-03 19:12:56 -04:00
|
|
|
: vim-syntax
|
|
|
|
#! Generate a new factor.vim file for syntax highlighting
|
|
|
|
"contrib/vim/factor.vim.fgen" "factor.vim" embedded-convert ;
|
|
|
|
|