bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vim syntax highlighting on Windows


From: Mark Polesky
Subject: vim syntax highlighting on Windows
Date: Tue, 30 Jul 2013 14:48:42 -0700 (PDT)

Hi all,


I'm temporarily on a windows machine, and a I'm trying to
get the syntax highlighting to work with vim.  I followed
the instructions in the docs here:
http://lilypond.org/doc/v2.17/Documentation/usage/text-editor-support.html#vim-mode

When I opened an .ly file in vim, I got this error:

Error detected while processing C:\Program 
Files\LilyPond\usr\share\lilypond\current\vim\syntax\lilypond.vim:
line   54:
E108: No such variable: "b:current_syntax"

I changed the offending line ("unlet b:current_syntax") to:

if exists("b:current_syntax")
  unlet b:current_syntax
endif

and the error message went away.  Is that a bug?

Also, I cannot get scheme highlighting to work in any
context (within a .scm file or embedded scheme code in an
.ly file).  One thing I noticed was that (at least on the
windows binary), vim\syntax\ did not contain a scheme.vim
file, and neither does the syntax\ directory that ships with
"Git for Windows", 
C:\Program Files\Git\share\vim\vim73\syntax\.

I found a scheme.vim online here:
http://vim.cybermirror.org/runtime/ftplugin/scheme.vim

...copied that into both directories mentioned above, and
still nothing.

I'm using msysgit 1.8.3 from here:
http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git

Any ideas?

Thanks.
- Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]