Embedded Vim Preprocessor : Embedded Vim Preprocessor
script karma |
Rating 12/3,
Downloaded by 720 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Jess me |
|
script type |
utility |
|
description |
This is a basic Preprocessor Engine
It contains a script for processing Embedded Vim code in any file by using the following statements:
*Now: Includes statmens were added, it supports nested including, and each included file will be proccesed too.
<?vim:include="file_source.html">
...any text...
<?vim>
...
{pure vim statements}
...
</?vim>
...any text...
or
...any text...<?vim={a vim expresion}>...any text...
_________________________________________________________________________
****WRITE THE FOLLOWING FILE:****
---------File.txt--------------------
<?vim:include="headerfile.txt">
You can use it on any file
<?vim>
let i=0
while i<11
</?vim>
The i value is: <?vim="actually ".i >
<?vim>let i=i+1 | endw</?vim>
---------------------------------------
*****TYPE ':%PPEV'****
****AND YOU WILL GET THE FOLLOWING FILE****
-----------File2.txt---------------------
Header of the included file
You can use it on any file
The i value is: actually 0
The i value is: actually 1
The i value is: actually 2
The i value is: actually 3
The i value is: actually 4
The i value is: actually 5
The i value is: actually 6
The i value is: actually 7
The i value is: actually 8
The i value is: actually 9
The i value is: actually 10
--------------------------------------
_________________________________________________________________________
Current Features:
*You can use embedded Vim code with any file, then
*using ':%PPEV' command it generates another file(any name) with the Embedded Vim Code processed
*<?vim> </?vim> statements
*<?vim={expr}> statement
*<?vim:include="{file}"> statement
Future versions:
*ifdef
*ifndef
*define
|
|
install details |
Just source the evcp.vim file.
It contains install instructions, step by step tutorial, and example files generated with EVP |
|
script versions (upload new version)
Click on the package to download.
evcp1.0.1.tar.gz |
1.0.1 |
2005-03-26 |
6.0 |
Jess me |
Bug fixed: Now you don't need to escape quotes in normal text
Bug fixed: Empty processing lines, and other overwrite errors were fixed.
New Features: <?vim:include=""> statement, unix and windows support |
evp-1.0.tar.gz |
v1.0 |
2005-03-21 |
6.0 |
Jess me |
Initial upload |
ip used for rating: 3.21.97.61
|