The syntax highlighting file for Inform, inform.vim is always
available here. There are three versions:
inform.vim,
currently dated 2004 May 16 is always the most recent
version currently included in standard Vim distributions.
Vim 6.3 has this version. It has the following changes against
the previous stable version (dated 2003 Apr 06 in Vim 6.2):
hasnt,
in, notin, ofclase,
provides and or were not being
highlighted.
inform.vim is always the version that has
been most recently forwarded to Bram Moolenaar (Vim's creator) for
inclusion in the next standard Vim distribution. With the release of
Vim 6.3, there is no current pending version.
inform.vim
contains experimental features and/or bug fixes that I would
like people to try out before sending them onto Bram. Currently,
there is no development version.
Obviously the life-cycle goes something like this: New features appear in development versions, and get tested (hopefully by others besides me). Once we are happy, a file with the development features is sent to Bram, which then becomes the pending version. Finally, once a new version of Vim is released, the most recent pending version sent to him becomes the stable version.
To install a new copy of inform.vim, follow the instructions
relating to installing a syntax file in Vim's online help.
Vim's Inform syntax highlighting support can be customized in a few ways:
The vast majority of Inform users will be using it for its primary purpose - writing interactive fiction. By default, Vim's Inform syntax highlighting comes configured for such users. As well as highlighting basic Inform language features, various symbols defined by the Library are also emphasized.
However, there are users who use the Inform language but not the Library - effectively they are using Inform as a more general programming language (something which, frankly, it is not that well adapted for). As these users may well be using identifiers normally defined by the Library for completely different purposes, highlighting Library symbols may be confusing. To suppress Library symbol highlighting, put the command:
:let inform_highlight_simple=1
in your vimrc file.
Most Inform programs need not be aware of which kind of machine they are going to run on, but some programs may need to make use of, for example, in-line assembly language which is very different for the two targets. Additionally, there are slight differences in the Library symbols provided by Glulx and Z-Machine Inform implementations.
By default, Vim's Inform syntax highlighting assumes you are writing programs targeted for the Z-Machine. To make the highlighting Glulx-orientated, put the command:
:let inform_highlight_glulx=1
in your vimrc file.
[This is not adequate in some ways. Inform code intended
to be usable on both the Z-Machine and Glulx will contain
blocks of code for both, using conditional compilation to
select whichever is appropriate. However, when editing such
code the user will probably want both Z-Machine and Glulx
highlighting features active at the same time, and at the
moment you get to choose one. This will be improved in
future versions of inform.vim.]
:let inform_suppress_obsolete=1
in your vimrc. This will simply stop obsolete
constructs being highlighted as errors.
The second, more preferable, way to prevent obsoletes highlighting as errors is to modernize your source code, of course.
:let inform_highlight_old=1
to your vimrc file.
When running Vim, you can get Inform-specific help (such as it is)
by using the command ":help inform".
Updated: 11th September 2004