On 04/09/13 07:42, Frédéric Bron wrote:
My Fedora 19 distribution updated vim to 7.4. Sadly lilypond syntax
has disappeared. I have downloaded the source with hg and could not
find the syntax file either although it was present in 7.3. Is it an
issue for vim or were those syntax files added by the fedora package
maintainer?

Here is the list of lilypond related files I can see in 7.3 version
that are not present in 7.4:
/usr/share/vim/vim73/syntax/lilypond.vim
/usr/share/vim/vim73/syntax/lilypond-words.vim
/usr/share/vim/vim73/syntax/lilypond-words
/usr/share/vim/vim73/indent/lilypond.vim
/usr/share/vim/vim73/compiler/lilypond.vim
/usr/share/vim/vim73/ftdetect/lilypond.vim
/usr/share/vim/vim73/ftplugin/lilypond.vim

Frédéric

I just checked Vim 7.3.1314 as it is on the Mercurial server, and it hasn't got these files either. So you got them from somewhere else and did something that you ought NEVER to have done (and now you see why): you dropped them into subdirectories of $VIMRUNTIME, whose full path ends in .../vim73/ for Vim 7.3 and in .../vim74/ for Vim 7.4. If you had dropped them instead in subdirectories of $VIM/vimfiles/ or of ~/.vim/ (creating them if necessary, as they don't exist by default), then Vim 7.4 would still see them.

So if you still have the files listed above, you can get them back by doing the following (assuming that the Vim 7.3 $VIMRUNTIME and the Vim 7.4 $VIMRUNTIME have a common parent which they both know as $VIM):

#!/bin/bash
pushd /usr/share/vim
for d in syntax indent compiler ftdetect ftplugin
do
  mkdir -pv vimfiles/$d
  cp -v vim73/$d/lilypond* vimfiles/$d
done
popd


The above short script (which you should create with "executable" permission of course, and [DISCLAIMER] which I haven't tested) should copy the files to their proper location, creating the directories as needed and telling you what it is doing.

You should run that script after logging in to a username having the proper permissions to create subdirectories of /usr/share/vim/ and add files to them.

If the Vim 7.3 $VIM and the Vim 7.4 Vim are not the same (e.g. /usr/share/vim/ for 7.3 and /usr/local/share/vim/ for 7.4) then you need to modify the above script slightly according to what you have. I trust that you will know (or will be able to guess) how to do that.


Best regards,
Tony.
--
I'd rather be led to hell than managed to heavan.

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui