X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=vimrc;h=b6093bb8ef5750064baa897462e1011b5f94e841;hb=13fb1343eb32c5b61227417529002bbbd0301f85;hp=b8123fcb10ca80d3cdf42d7bbbd545d8daab8edb;hpb=6bc0a8a090e82c4bce57df8e980b48cc78cb422b;p=lilypond.git diff --git a/vimrc b/vimrc index b8123fcb10..b6093bb8ef 100644 --- a/vimrc +++ b/vimrc @@ -1,27 +1,47 @@ -: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 " -" F7 prev error -map [18~ :cp +" save & make and play midi +map :w:se makeprg=ly2dvi\ -m\ %<:make:!timidity %<.midi " -" F8 next error -map [19~ :cn +" save & make dvi, midi, ps +map :w:se makeprg=ly2dvi\ -P\ %<:make " -" F9 make -map [20~ :w :se makeprg=make\ -k :make +" view ps +map :!gv -watch %<.ps & " -" F10 run buffer through lily -map [21~ :w :se makeprg=lilypond\ %:t :make +" view dvi +map :!xdvi %<.dvi & " -" F11 check buffer for quarts -map [23~ :w :se makeprg=lilypond\ -Q%:t :make +" prev error +map :cp " +" next error +map :cn " +" make +map :w:se makeprg=make\ -k:make +" +" run buffer through lily +map :w:se makeprg=lilypond\ %: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 dictionary+=~/.vim/lilypond.words +set complete-=k complete+=k " errorformat for lily (with columns) and gcc " (how to see multiple-line error messages?) " se errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m +