5 " some handy key mappings
7 " <F2> save and go to previous buffer
8 map <F2> :w<Return>:bp<Return>
10 " <F3> save and go to next buffer
11 map <F3> :w<Return>:bn<Return>
13 " <F4> save & make and play midi
14 map <F4> :w<Return>:se makeprg=lilypond\ -m\ %<<Return>:make<Return>:!timidity %<.midi<Return>
16 " <F5> save & make dvi, midi, ps
17 map <F5> :w<Return>:se makeprg=lilypond\ %<<Return>:make<Return>
20 map <F6> :!gv -watch %<.ps &<Return>
23 map <S-F6> :!xdvi %<.dvi &<Return>
32 map <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return>
35 :source $VIMRUNTIME/menu.vim
39 :map <F10> :emenu <C-Z>
41 " <F12> comment region
42 map <F12> :g!/%.*/normal 0i%<Return>
44 " <S-F12> remove comments in region
45 map <S-F12> :g/%.*/normal 0x<Return>
47 " Completions in Insert/Replace-mode with <Ctrl-N>
48 set dictionary-=~/.vim/lilypond.words.el dictionary+=~/.vim/lilypond.words.el
49 set complete-=k complete+=k
50 " errorformat for lily (with columns) and gcc
51 " (how to see multiple-line error messages?)
53 se errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m