:version 6.1 set autoindent set shiftwidth=2 " " some handy key mappings " " save & make and play midi map :w:se makeprg=ly2dvi\ -m\ %<:make:!timidity %<.midi " " save & make dvi, midi, ps map :w:se makeprg=ly2dvi\ -P\ %<: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 " " run buffer through lily map :w:se makeprg=lilypond\ %:t:make " " run buffer through lily -M map :w:se makeprg=lilypond\ -M\ %:t:make " " comment region map :g!/%.*/normal 0i% " " remove comments in region map :g/%.*/normal 0x " " Completions in Insert/Replace-mode with set dictionary-=~/.vim/lilypond.words dictionary+=~/.vim/lilypond.words set complete-=k complete+=k " errorformat for lily (with columns) and gcc " (how to see multiple-line error messages?) " se errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m