From 1c9fe852b40d4e7a883bcdc71c91abdd023514bb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 16 Aug 2015 14:50:35 -0400 Subject: Don't turn on Galaxy Far Far away when not `g:auditory_on` My change from 71ec214cdb8814ecb71c837bf947583fda54d37e caused Galaxy Far Far Away sounds to be turned on any time you had `g:auditory_galaxy_far_far_away` turned on, regardless of whether `g:auditory_on` was also turned on. Fix this because we never want sounds to play when `g:auditory_on` is off. We now rely on `auditory#AssignInsertMappings()` to know whether to use Galaxy Far Far Away or default insert mode sounds. Need to toggle `g:auditory_galaxy_far_far_away` in that function because we're calling the toggle function so we need to set it to the opposite of what we want. In the future if we add more insert mode sounds we'll have to change this structure around but it should work for now. --- plugin/auditory.vim | 5 ----- 1 file changed, 5 deletions(-) (limited to 'plugin') diff --git a/plugin/auditory.vim b/plugin/auditory.vim index d740561..411a812 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -29,8 +29,3 @@ command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() if g:auditory_on call auditory#AssignMappings() endif - -if g:auditory_galaxy_far_far_away - let g:auditory_galaxy_far_far_away = 0 - call auditory#ToggleGalaxyFarFarAway() -endif -- cgit v1.2.3