[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vim syntax highlighting on Windows
From: |
Federico Bruni |
Subject: |
Re: vim syntax highlighting on Windows |
Date: |
Sun, 4 Aug 2013 14:20:59 +0200 |
2013/7/30 Mark Polesky <address@hidden>
> 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?
>
I can't test the Windows error...
I don't understand: LilyPond syntax is higlighted correctly and only Scheme
is not highlighted?
What the documentation is omitting is "syntax on"
I would add it to:
filetype off
set runtimepath+=/usr/local/share/lilypond/current/vim/
filetype on
syntax on
- Re: vim syntax highlighting on Windows,
Federico Bruni <=