[GAP Forum] syntax highlighting in vim
Frank Lübeck
frank.luebeck at math.rwth-aachen.de
Sun Feb 13 23:15:40 GMT 2011
On Sun, Feb 13, 2011 at 09:40:56AM +0300, Robert Heffernan wrote:
> Hi all,
>
> Does anybody use Frank Lubeck's syntax highlighting file for vim when
> editing gap code?
>
> I have followed the instructions here:
> http://www-gap.dcs.st-and.ac.uk/ForumArchive/Gamble.1/Greg.1/Re__Edit.1/1.html
Dear Bob, dear Forum,
This is a quite old mail, and you could also access this information
in the file GAPROOT/etc/README.vim-utils of your GAP installation or
by asking the GAP help:
gap> ?vim
> and some things seem to work fine (automatic folding and completion)
> but there does not seem to be any highlighting going on. There are
> certainly several lines in the gap.vim file that seem to intend to
> change to colour etc. of various bits but it's not working.
>
> Does anybody else have this problem? Can anybody think of something
> that I might be doing wrong? Syntax highlighting works fine for other
> things (latex, for instance) so I don't think it's something wrong
> with my installation of vim.
You found the solution yourself. Indeed, the default configuration of
vim has changed in some version, and now the 'gap.vim' file must
be copied to: ~/.vim/syntax/gap.vim
Thanks for the reminder, I will adjust the documentation for the
next GAP release.
Except for this small detail vim is very stable, and I didn't change
anything in the vim-files for GAP for a long time.
Bill Allombert suggested to include the files in the vim distribution.
I didn't do this because there is already some other syntax file for
files with .g extension.
Best regards,
Frank
--
/// Dr. Frank Lübeck, Lehrstuhl D für Mathematik, Templergraben 64, ///
\\\ 52062 Aachen, Germany \\\
/// E-mail: Frank.Luebeck at Math.RWTH-Aachen.De ///
\\\ WWW: http://www.math.rwth-aachen.de/~Frank.Luebeck/ \\\
More information about the Forum
mailing list