Re: Automatic indentation in Vim

2008-11-13 Thread Daniel Hulme
On Thu, Nov 13, 2008 at 11:39:28PM +0100, Frédéric Bron wrote:
> by the way, do you know how to change the default indentation in  
> lilypond files from 2 spaces to 1 tabulation?

Yes. Edit the file ftplugin/lilypond.vim (in the ~/.vimfiles directory;
copy it from /usr/share/lilypond/*/vim if you use the 'runtimepath'
method of having Vim read the files that Lilypond installs there). Find
the line
setlocal shiftwidth=2
and delete it. Then Vim will use the same value that it uses for
everything else.

-- 
The first step in avoiding a trap is being aware of its existence.
The second step is being aware that the first step is not the only one.
http://surreal.istic.org/Why did you resign?


signature.asc
Description: Digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Frédéric Bron
by the way, do you know how to change the default indentation in 
lilypond files from 2 spaces to 1 tabulation?


Frédéric


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic Indentation in Vim

2008-11-13 Thread Martin Tarenskeen
Thanks for your help. I have now set up Vim with Lilypond syntax 
highlighting and automatic indentation. Good.

I have also started a new thread this time. I didn't realize that just 
changing the subject line wasn't enough. 

-- 

Martin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Patrick McCarty
On Thu, Nov 13, 2008 at 1:37 PM, Jonathan Kulp <[EMAIL PROTECTED]> wrote:
>
> Sorry, folks, but why does this email on Vim show up on the thread about
> Lilypond being excessively slow on Vista?  (My email app is set to sort
> incoming mail by thread.)  This has happened on a couple of other threads
> recently, too.  Does this happen if someone hits reply-all to a thread and
> changes the subject line?  Thunderbird thinks it belongs with the old
> thread.

Yes, you're right!

The message that started this thread contains Message-ID references
from another thread.

-Patrick


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Josh Parmenter

On Nov 13, 2008, at 1:37 PM, Jonathan Kulp wrote:

Sorry, folks, but why does this email on Vim show up on the thread  
about Lilypond being excessively slow on Vista?  (My email app is  
set to sort incoming mail by thread.)  This has happened on a couple  
of other threads recently, too.  Does this happen if someone hits  
reply-all to a thread and changes the subject line?  Thunderbird  
thinks it belongs with the old thread.


Yes - it probably does (since information is placed into the email  
header when you hit reply). Please start new threads with new topics!


Best,

Josh


Jon
--
Jonathan Kulp
http://www.jonathankulp.com


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Jonathan Kulp

Eyolf Østrem wrote:

On 13.11.2008 (22:03), Martin Tarenskeen wrote:

Hi Lilyponders,

Any Vim users here ? I'm using Vim for editing Lilypond files on a Linux 
Fedora 9 system. I have syntax highlighting, which is great. How do I 
enable automatic indentation to make things even easier ?
 
Sorry, folks, but why does this email on Vim show up on the thread about 
Lilypond being excessively slow on Vista?  (My email app is set to sort 
incoming mail by thread.)  This has happened on a couple of other 
threads recently, too.  Does this happen if someone hits reply-all to a 
thread and changes the subject line?  Thunderbird thinks it belongs with 
the old thread.


Jon
--
Jonathan Kulp
http://www.jonathankulp.com


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Daniel Hulme
On Thu, Nov 13, 2008 at 10:03:02PM +0100, Martin Tarenskeen wrote:
> Hi Lilyponders,
> 
> Any Vim users here ? I'm using Vim for editing Lilypond files on a Linux 
> Fedora 9 system. I have syntax highlighting, which is great. How do I 
> enable automatic indentation to make things even easier ?

:set cin ai
will give you pretty good indentation that works for any file. For
indentation tailored to Lilypond's syntax, you will find in
/usr/share/lilypond/*/vim/indent/lilypond.vim the appropriate options.
If you copy all the files in /usr/share/lilypond/*/vim/ to the directory
~/.vimfiles, being careful to keep the same directory structure, and
make sure that the line
filetype plugin indent on
appears in your ~/.vimrc, then the indentation options, syntax
highlighting, and settings for understanding lilypond's output messages
so you can jump to errors in your file (see :help quickfix if you don't
know about this feature) will all be automatically set up when you edit
a .ly file.

-- 
"Listen to your users, but ignore what they say." - Nathaniel Borenstein
http://surreal.istic.org/  Calm down, it's only ones and zeroes.


signature.asc
Description: Digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Eyolf Østrem

On 13.11.2008 (22:03), Martin Tarenskeen wrote:
> Hi Lilyponders,
> 
> Any Vim users here ? I'm using Vim for editing Lilypond files on a Linux 
> Fedora 9 system. I have syntax highlighting, which is great. How do I 
> enable automatic indentation to make things even easier ?
 
set autoindent
set smartindent
filetype plugin indent on
syntax on

This is what I have in .vimrc. And then of course the lilypond ft-plugin. 
The indent file is loaded with

set runtimepath+=/usr/share/lilypond//vim/

I'm also working on a "lyqi-mode" for vim. It's going to be great, some
day, but don't hold your breath...

e


-- 
Neutrinos have bad breadth.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Automatic indentation in Vim

2008-11-13 Thread Martin Tarenskeen
Hi Lilyponders,

Any Vim users here ? I'm using Vim for editing Lilypond files on a Linux 
Fedora 9 system. I have syntax highlighting, which is great. How do I 
enable automatic indentation to make things even easier ?

-- 

Martin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user