contrib/vim/ fix

slava 2006-08-03 20:24:53 +00:00
parent 711cb9ad1f
commit 719ba09ee9
2 changed files with 4 additions and 10 deletions

View File

@ -1,9 +1,4 @@
#! To generate factor.vim:
#! ./f factor.image
#! "contrib/httpd/embedded.factor" run-file
#! "contrib/vim/load.factor" run-file
REQUIRES: embedded ;
REQUIRES: embedded process ;
USING: embedded io ;
@ -12,7 +7,6 @@ USING: embedded io ;
"contrib/vim" cd
"factor.vim.fgen" "factor.vim" embedded-convert
! vim word, similar to the jedit word
PROVIDE: vim {
"vim.factor"

View File

@ -1,6 +1,6 @@
IN: vim
REQUIRES: process ;
USING: io kernel parser prettyprint process sequences ;
USING: definitions io kernel parser prettyprint process
sequences ;
: file-modified stat fourth ;
@ -10,5 +10,5 @@ USING: io kernel parser prettyprint process sequences ;
: vim ( spec -- )
#! Edit the file in vim. Rerun the file if the timestamp is changed.
dup where first2 >r ?resource-path [ file-modified ] keep r>
[ vim-line/file ] 2keep drop file-modified = [ drop ] [ reload ] if ;
dupd vim-line/file file-modified = [ drop ] [ reload ] if ;