lilypond-user
[Top][All Lists]
Advanced

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

Re: Automatic indentation in Vim


From: Daniel Hulme
Subject: Re: Automatic indentation in Vim
Date: Thu, 13 Nov 2008 21:30:07 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

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.

Attachment: signature.asc
Description: Digital signature


reply via email to

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