" LilyPond filetype plugin " Language: LilyPond (ft=ly) " Maintainer: Heikki Junes " Last Change: 2004 March 1 " " Installed As: vim/ftplugin/lilypond.vim " Uses Generated File: vim/syntax/lilypond-words.el " " Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 setlocal autoindent setlocal shiftwidth=2 " " some handy key mappings " " save & make and play midi map :w:se makeprg=lilypond\ -m\ %<:make:!timidity %<.midi " " save & make dvi, midi, ps map :w:se makeprg=lilypond\ %<:make " " view ps map :!gv -watch %<.ps & " " view dvi map :!xdvi %<.dvi & " " prev error map :cp " " next error map :cn " " make map :w:se makeprg=make\ -k:make " " menu source $VIMRUNTIME/menu.vim setlocal wildmenu setlocal cpo-=< setlocal wcm= map :emenu " " comment region map :g!/%.*/normal 0i% " " remove comments in region map :g/%.*/normal 0x " " Completions in Insert/Replace-mode with setlocal dictionary-=$VIM/syntax/lilypond-words dictionary+=$VIM/syntax/lilypond-words setlocal complete-=k complete+=k " setlocal showmatch