5 " some handy key mappings
7 " <F4> save & make and play midi
8 map <F4> :w<Return>:se makeprg=lilypond\ -m\ %<<Return>:make<Return>:!timidity %<.midi<Return>
10 " <F5> save & make dvi, midi, ps
11 map <F5> :w<Return>:se makeprg=lilypond\ -P\ %<<Return>:make<Return>
14 map <F6> :!gv -watch %<.ps &<Return>
17 map <S-F6> :!xdvi %<.dvi &<Return>
26 map <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return>
28 " <F10> run buffer through lily
29 map <F10> :w<Return>:se makeprg=lilypond\ %:t<Return>:make<Return>
31 " <S-F10> run buffer through lily -M
32 map <S-F10> :w<Return>:se makeprg=lilypond\ -M\ %:t<Return>:make<Return>
34 " <F12> comment region
35 map <F12> :g!/%.*/normal 0i%<Return>
37 " <S-F12> remove comments in region
38 map <S-F12> :g/%.*/normal 0x<Return>
40 " Completions in Insert/Replace-mode with <Ctrl-N>
41 set dictionary-=~/.vim/lilypond.words.el dictionary+=~/.vim/lilypond.words.el
42 set complete-=k complete+=k
43 " errorformat for lily (with columns) and gcc
44 " (how to see multiple-line error messages?)
46 se errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m