]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-ftplugin.vim: set makeprg locally rather than globally
authorGreg Swinford <gregrs@fastmail.co.uk>
Sat, 21 May 2016 07:46:38 +0000 (08:46 +0100)
committerJames Lowe <pkx166h@gmail.com>
Sat, 21 May 2016 07:54:47 +0000 (08:54 +0100)
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

index c822c43f016863c1292acbe3e08b09c3b022a5bf..0c3a8dc7e2582547a5a56261d4c9d1f5b633e1b3 100644 (file)
@@ -18,10 +18,10 @@ setlocal shiftwidth=2
 " some handy key mappings
 "
 " <F4>  save & make and play midi with timidity
-map <buffer> <F4> :w<Return>:se makeprg=lilypond\ \"%<\"<Return>:make<Return>:!timidity "%<.midi"<Return>
+map <buffer> <F4> :w<Return>:setl makeprg=lilypond\ \"%<\"<Return>:make<Return>:!timidity "%<.midi"<Return>
 "
 " <F5>  save & make
-map <buffer> <F5> :w<Return>:se makeprg=lilypond\ \"%<\"<Return>:make<Return>
+map <buffer> <F5> :w<Return>:setl makeprg=lilypond\ \"%<\"<Return>:make<Return>
 "
 " <F6>  view pdf with ghostview
 map <buffer> <F6> :!gv --watch "%<.pdf" &<Return>
@@ -33,7 +33,7 @@ map <buffer> <F7> :cp<Return>
 map <buffer> <F8> :cn<Return>
 "
 " <F9>  make
-map <buffer> <F9> :w<Return>:se makeprg=make\ -k<Return>:make<Return>
+map <buffer> <F9> :w<Return>:setl makeprg=make\ -k<Return>:make<Return>
 "
 " <F10> menu
 source $VIMRUNTIME/menu.vim