contrib/vim/ fix
parent
711cb9ad1f
commit
719ba09ee9
|
@ -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"
|
||||
|
|
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue