From 9d73c91138c327a0f2e2438b19116aaa9bb6dd1d Mon Sep 17 00:00:00 2001 From: Greg Swinford Date: Sat, 21 May 2016 08:46:38 +0100 Subject: 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. --- vim/lilypond-ftplugin.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim') 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 -- cgit v1.2.3