The following
information about Vim as well as the syntax file was provided by
Jochen
Schoof.
Vim
is one of the most powerful editors available today. It is especially
popular among developers working on both Windows and Unix systems
as it is available for a large number of systems. It is an improvement
of the classical Unix editor vi. While traditional vi was quite
hard to learn, Vim today comes with an easily extendable menu system
facilitating a quick start. If you want to give it a try, you can
learn more about it at http://www.vim.org.
Vim is both open source and charity-ware. Vim offers powerful mechanisms
for highlighting files in various formats. More than 350 are supported
out of the box. Users can write additional syntax files.
After
the installation all files with the .zrf suffix will - hopefully
- be syntax highlighted. If the look does not satisfy you, feel
free to adapt the file to your individual requirements.
Installation
This
description assumes you have installed the Vim editor.
Download
zrf_vim.zip and extract the contents.
Copy
the zrf.vim file to the directory $VIMRUNTIME/syntax/. For most
Windows users this path will be something like "C:\Program
Files\vim\vimfiles" depending on where Vim was installed.
Next
open the file $VIMRUNTIME/filetype.vim and add the following line
to it:
au BufNewFile,BufRead *.zrf setf zrf
If
this file does not exist, you can simply copy all .vim files from
the $VIM directory (C:\Program Files\vim in the example above) into
$VIMRUNTIME.
Alternatively
the changes described above can be applied to the files in the $VIM
directory directly. However, this approach will lose the changes
when installing a new version of Vim and, thus, is not recommended.
Background
I
wrote this syntax file to facilitate my own game programming for
Zillions of Games. It is the very first syntax file I wrote and
so probably it is far from perfect. At the moment it is not context
sensitive at all. Maybe I will improve that, but do not count on
it. Any feedback is welcome and appreciated. - Jochen Schoof, June 2003
<-
Back to Text Editors page

|