]> git.donarmstrong.com Git - lilypond.git/blobdiff - vimrc
* input/regression/spacing-note-flags.ly (raggedright): remove
[lilypond.git] / vimrc
diff --git a/vimrc b/vimrc
index 3ce1932e4c0c2dccb409aed69b2617bfecd5d976..b6093bb8ef5750064baa897462e1011b5f94e841 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -1,34 +1,45 @@
-:version 4.0
+:version 6.1
 set autoindent
 set shiftwidth=2
 "
 " some handy key mappings
 "
-" F4  save & make and play midi
+" <F4>  save & make and play midi
 map <F4> :w<Return>:se makeprg=ly2dvi\ -m\ %<<Return>:make<Return>:!timidity %<.midi<Return>
 "
-" F5  save & make dvi, midi, ps
+" <F5>  save & make dvi, midi, ps
 map <F5> :w<Return>:se makeprg=ly2dvi\ -P\ %<<Return>:make<Return>
 "
-" F6  view ps
+" <F6>  view ps
 map <F6> :!gv -watch %<.ps &<Return>
 "
-" F7  prev error
+" <S-F6>  view dvi
+map <S-F6> :!xdvi %<.dvi &<Return>
+"
+" <F7>  prev error
 map <F7> :cp<Return>
 "
-" F8  next error
+" <F8>  next error
 map <F8> :cn<Return>
 "
-" F9  make
+" <F9>  make
 map <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return>
 "
-" F10 run buffer through lily
+" <F10> run buffer through lily
 map <F10> :w<Return>:se makeprg=lilypond\ %:t<Return>:make<Return>
 "
-" shift F10: run buffer through lily -M
+" <S-F10> run buffer through lily -M
 map <S-F10> :w<Return>:se makeprg=lilypond\ -M\ %:t<Return>:make<Return>
 "
+" <F12> comment region
+map <F12> :g!/%.*/normal 0i%<Return>
+"
+" <S-F12> remove comments in region
+map <S-F12> :g/%.*/normal 0x<Return>
 "
+" Completions in Insert/Replace-mode with <Ctrl-N>
+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?)
 "