Re: vim syntax highlighting on Windows

2013-08-12 Thread Federico Bruni
2013/7/30 Mark Polesky 

> 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\.
>

Mark, I can find only this open issue:
https://code.google.com/p/lilypond/issues/detail?id=1457

BTW, there's no scheme.vim file in lilypond binaries (even if it's
mentioned in a comment):

$ tree usr/share/lilypond/current/vim/
usr/share/lilypond/current/vim/
├── compiler
│   └── lilypond.vim
├── ftdetect
│   └── lilypond.vim
├── ftplugin
│   └── lilypond.vim
├── indent
│   └── lilypond.vim
└── syntax
├── lilypond.vim
├── lilypond-words
└── lilypond-words.vim
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: vim syntax highlighting on Windows

2013-08-12 Thread Federico Bruni
2013/8/5 Frédéric Bron 

> > I would add it to:
> >
> > filetype off
> > set runtimepath+=/usr/local/share/lilypond/current/vim/
> > filetype on
> > syntax on
>
>
> maybe:
> set nocompatible
>

IIUC, this is to keep the config in the main vimrc file?
In Debian vimrc file 'syntax on'  is commented:

$ cat /etc/vim/vimrc | grep syntax
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"syntax on

so adding it in .vimrc should be better

I've added an issue here:
https://code.google.com/p/lilypond/issues/detail?id=3492
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: vim syntax highlighting on Windows

2013-08-04 Thread Frédéric Bron
> I would add it to:
>
> filetype off
> set runtimepath+=/usr/local/share/lilypond/current/vim/
> filetype on
> syntax on


maybe:
set nocompatible

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: vim syntax highlighting on Windows

2013-08-04 Thread Federico Bruni
2013/7/30 Mark Polesky 

> 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
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


vim syntax highlighting on Windows

2013-07-30 Thread Mark Polesky
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

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond