[Top][All Lists]
[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.
signature.asc
Description: Digital signature
- Re: LilyPond is excessively slow on Windows Vista, (continued)
- Re: LilyPond is excessively slow on Windows Vista, Patrick McCarty, 2008/11/13
- Automatic indentation in Vim, Martin Tarenskeen, 2008/11/13
- Re: Automatic indentation in Vim, Eyolf Østrem, 2008/11/13
- Re: Automatic indentation in Vim, Jonathan Kulp, 2008/11/13
- Re: Automatic indentation in Vim, Josh Parmenter, 2008/11/13
- Re: Automatic indentation in Vim, Patrick McCarty, 2008/11/13
- Re: Automatic indentation in Vim, Frédéric Bron, 2008/11/13
- Re: Automatic indentation in Vim, Daniel Hulme, 2008/11/13
- Re: Automatic indentation in Vim,
Daniel Hulme <=
- Re: LilyPond is excessively slow on Windows Vista, Trevor Daniels, 2008/11/14
- Re: LilyPond is excessively slow on Windows Vista, Patrick McCarty, 2008/11/14
- Re: LilyPond is excessively slow on Windows Vista, Trevor Daniels, 2008/11/15
- RE: LilyPond is excessively slow on Windows Vista, Nick Payne, 2008/11/15
- Re: LilyPond is excessively slow on Windows Vista, Jonathan Kulp, 2008/11/15
Re: LilyPond is excessively slow on Windows Vista, Rob Pratt, 2008/11/12
Re:LilyPond is excessively slow on Windows Vista, Tim Reeves, 2008/11/12