From 91d022026f10bac96ed9f7ad7ff22fbd8e2b2c62 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 27 Nov 2014 17:10:59 -0500 Subject: plugin/auditory.vim: Don't reload the plugin if loaded I see this in the sources of all the plugins I look at. Figure I should be a good Vim plugin citizen and do this too. This should also provide a convenient way to turn off the plugin when starting Vim. --- plugin/auditory.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/auditory.vim b/plugin/auditory.vim index 3ada40e..821c5ba 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -1,3 +1,9 @@ +if exists('g:loaded_auditory') + finish +endif +let g:loaded_auditory = 1 + + " Require mplayer otherwise fail if !executable('mplayer') echomsg 'Auditory.vim requires `mplayer` to be installed' -- cgit v1.2.3