From 5499449cfea44f2a33a0cf8fa039adf96cc6f313 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 22 Nov 2014 13:53:42 -0500 Subject: plugin/auditory.vim: Show warning if mplayer not installed On plugin load, if mplayer isn't installed then fail ungracefully. Since we depend on mplayer in order to play any sounds, my thinking now is that I want to fail immediately. Still trying to decide if this is be best course of action. Maybe I just want an informative message instead of a complete failure. --- plugin/auditory.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/auditory.vim b/plugin/auditory.vim index 87585a3..b657bd9 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -1,3 +1,10 @@ +" Require mplayer otherwise fail +if !executable('mplayer') + echoerr 'Auditory.vim requires `mplayer` to be installed' + finish +endif + + augroup auditory#insert_mode autocmd! autocmd CursorMovedI * call auditory#PlayScale() -- cgit v1.2.3