X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2Flilypond-ftplugin.vim;h=0c3a8dc7e2582547a5a56261d4c9d1f5b633e1b3;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=fa69f49ebda260693c307be185774feedb989761;hpb=e3c9620c20174bd54c523a9bd892bb4666efc400;p=lilypond.git diff --git a/vim/lilypond-ftplugin.vim b/vim/lilypond-ftplugin.vim index fa69f49ebd..0c3a8dc7e2 100644 --- a/vim/lilypond-ftplugin.vim +++ b/vim/lilypond-ftplugin.vim @@ -1,10 +1,8 @@ " LilyPond filetype plugin " Language: LilyPond (ft=ly) -" Maintainer: Heikki Junes -" Last Change: 2004 March 1 " " Installed As: vim/ftplugin/lilypond.vim -" Uses Generated File: vim/syntax/lilypond.words.el +" Uses Generated File: vim/syntax/lilypond-words.vim " " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -19,17 +17,14 @@ setlocal shiftwidth=2 " " some handy key mappings " -" save & make and play midi -map :w:se makeprg=lilypond\ -m\ %<:make:!timidity %<.midi +" save & make and play midi with timidity +map :w:setl makeprg=lilypond\ \"%<\":make:!timidity "%<.midi" " -" save & make dvi, midi, ps -map :w:se makeprg=lilypond\ %<:make +" save & make +map :w:setl makeprg=lilypond\ \"%<\":make " -" view ps -map :!gv -watch %<.ps & -" -" view dvi -map :!xdvi %<.dvi & +" view pdf with ghostview +map :!gv --watch "%<.pdf" & " " prev error map :cp @@ -38,7 +33,7 @@ map :cp map :cn " " make -map :w:se makeprg=make\ -k:make +map :w:setl makeprg=make\ -k:make " " menu source $VIMRUNTIME/menu.vim @@ -54,7 +49,7 @@ map :g!/%.*/normal 0i% map :g/%.*/normal 0x " " Completions in Insert/Replace-mode with -setlocal dictionary-=~/.vim/syntax/lilypond.words.el dictionary+=~/.vim/syntax/lilypond.words.el +setlocal dictionary-=$VIM/syntax/lilypond-words dictionary+=$VIM/syntax/lilypond-words setlocal complete-=k complete+=k " setlocal showmatch