Reviewers: ,
Message:
This avoids changing the make program for other Vim buffers when using
mapped keys to compile a LilyPond file
Description:
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
Please review this at https://codereview.appspot.com/292660043/
Affected files (+3, -3 lines):
M vim/lilypond-ftplugin.vim
Index: vim/lilypond-ftplugin.vim
diff --git a/vim/lilypond-ftplugin.vim b/vim/lilypond-ftplugin.vim
index
c822c43f016863c1292acbe3e08b09c3b022a5bf..0c3a8dc7e2582547a5a56261d4c9d1f5b633e1b3
100644
--- a/vim/lilypond-ftplugin.vim
+++ b/vim/lilypond-ftplugin.vim
@@ -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
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel