From: Greg Swinford Date: Sat, 21 May 2016 07:46:38 +0000 (+0100) Subject: lilypond-ftplugin.vim: set makeprg locally rather than globally X-Git-Tag: release/2.19.43-1~34 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=9d73c91138c327a0f2e2438b19116aaa9bb6dd1d lilypond-ftplugin.vim: set makeprg locally rather than globally Issue 4845 lilypond-ftplugin.vim: set makeprg locally rather than globally This avoids changing the make program for other Vim buffers when using mapped keys to compile a LilyPond file. --- diff --git a/vim/lilypond-ftplugin.vim b/vim/lilypond-ftplugin.vim index c822c43f01..0c3a8dc7e2 100644 --- a/vim/lilypond-ftplugin.vim +++ b/vim/lilypond-ftplugin.vim @@ -18,10 +18,10 @@ setlocal shiftwidth=2 " some handy key mappings " " save & make and play midi with timidity -map :w:se makeprg=lilypond\ \"%<\":make:!timidity "%<.midi" +map :w:setl makeprg=lilypond\ \"%<\":make:!timidity "%<.midi" " " save & make -map :w:se makeprg=lilypond\ \"%<\":make +map :w:setl makeprg=lilypond\ \"%<\":make " " view pdf with ghostview map :!gv --watch "%<.pdf" & @@ -33,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