diff options
author | Greg Swinford <gregrs@fastmail.co.uk> | 2016-05-21 08:46:38 +0100 |
---|---|---|
committer | James Lowe <pkx166h@gmail.com> | 2016-05-21 08:54:47 +0100 |
commit | 9d73c91138c327a0f2e2438b19116aaa9bb6dd1d (patch) | |
tree | 4e612fc6e0cb0c1edf1b4251aa6220b993a6380f | |
parent | aa94a4602b72dc9e81abc0de72c414d8663b9cda (diff) |
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.
-rw-r--r-- | vim/lilypond-ftplugin.vim | 6 |
1 files changed, 3 insertions, 3 deletions
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 " " <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 |