X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vimrc;h=7cfa170a401f07fb0fbccf5a1f25a4e93fd56833;hb=e421edccdc9aa2dbcdea52bdc35149d35997d224;hp=aec7d6e04a89788746adc5d05ae05c2d82302a74;hpb=8a64b0b9530adcade35e47738635b4c3d510639b;p=lilypond.git diff --git a/vimrc b/vimrc index aec7d6e04a..7cfa170a40 100644 --- a/vimrc +++ b/vimrc @@ -1,38 +1,45 @@ -:version 4.0 +:version 6.1 set autoindent set shiftwidth=2 -set tags=$LILYPOND_SOURCEDIR/flower/tags,$LILYPOND_SOURCEDIR/flower/include/tags,$LILYPOND_SOURCEDIR/lib/tags,$LILYPOND_SOURCEDIR/lib/include/tags,$LILYPOND_SOURCEDIR/lily/tags,$LILYPOND_SOURCEDIR/lily/include/tags " " some handy key mappings " -" F4 save & make and play midi -map :w :se makeprg=ly2dvi\ -m\ %< :make :!timidity %<.midi +" save & make and play midi +map :w:se makeprg=lilypond\ -m\ %<:make:!timidity %<.midi " -" F5 save & make dvi, midi, ps -map :w :se makeprg=ly2dvi\ -P\ %< :make +" save & make dvi, midi, ps +map :w:se makeprg=lilypond\ -P\ %<:make " -" F6 view ps -map :!gv -watch %<.ps & +" view ps +map :!gv -watch %<.ps & " -" F7 prev error -map [18~ :cp +" view dvi +map :!xdvi %<.dvi & " -" F8 next error -map [19~ :cn +" prev error +map :cp " -" F9 make -map [20~ :w :se makeprg=make\ -k :make +" next error +map :cn " -" F10 run buffer through lily -map [21~ :w :se makeprg=lilypond\ %:t :make +" make +map :w:se makeprg=make\ -k:make " -" F11 check buffer for quarts -map [23~ :w :se makeprg=lilypond\ -Q\ %:t :make +" run buffer through lily +map :w:se makeprg=lilypond\ %:t:make " -" shift F10: run buffer through lily -M -map [34~ :w :se makeprg=lilypond\ -M\ %: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.el dictionary+=~/.vim/lilypond.words.el +set complete-=k complete+=k " errorformat for lily (with columns) and gcc " (how to see multiple-line error messages?) "