]> git.donarmstrong.com Git - lilypond.git/blob - vim/ftplugin/lilypond.vim
* vim/ftplugin/lilypond.vim: change dir for dictionary.
[lilypond.git] / vim / ftplugin / lilypond.vim
1 :version 6.1
2 set autoindent
3 set shiftwidth=2
4 "
5 " some handy key mappings
6 "
7 " <F2>  save and go to previous buffer
8 map <F2> :w<Return>:bp<Return>
9 "
10 " <F3>  save and go to next buffer
11 map <F3> :w<Return>:bn<Return>
12 "
13 " <F4>  save & make and play midi
14 map <F4> :w<Return>:se makeprg=lilypond\ -m\ %<<Return>:make<Return>:!timidity %<.midi<Return>
15 "
16 " <F5>  save & make dvi, midi, ps
17 map <F5> :w<Return>:se makeprg=lilypond\ %<<Return>:make<Return>
18 "
19 " <F6>  view ps
20 map <F6> :!gv -watch %<.ps &<Return>
21 "
22 " <S-F6>  view dvi
23 map <S-F6> :!xdvi %<.dvi &<Return>
24 "
25 " <F7>  prev error
26 map <F7> :cp<Return>
27 "
28 " <F8>  next error
29 map <F8> :cn<Return>
30 "
31 " <F9>  make
32 map <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return>
33 "
34 " <F10> menu
35 :source $VIMRUNTIME/menu.vim
36 :set wildmenu
37 :set cpo-=<
38 :set wcm=<C-Z>
39 :map <F10> :emenu <C-Z>
40 "
41 " <F12> comment region
42 map <F12> :g!/%.*/normal 0i%<Return>
43 "
44 " <S-F12> remove comments in region
45 map <S-F12> :g/%.*/normal 0x<Return>
46 "
47 " Completions in Insert/Replace-mode with <Ctrl-N>
48 set dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/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?)
52 "
53 se errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m
54