From f3444f5dcfa269eee62b8daf552b3ed29a43aa04 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 16 Aug 2015 02:26:56 -0400 Subject: plugin/auditory.vim: Add `:AuditoryOn` command Create a new command to match `:AuditoryOff` that turns on mappings and sounds. We'll need this because I'm going to make the plugin not enable sounds by default. That will be controlled by a global variable. You'll be able to turn the sounds on and off as you wish. --- plugin/auditory.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/auditory.vim b/plugin/auditory.vim index e8ceeba..e0a764a 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -11,8 +11,9 @@ if !executable('mplayer') endif -command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() +command! AuditoryOn call auditory#AssignMappings() command! AuditoryOff call auditory#Unmap() +command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() call auditory#AssignMappings() -- cgit v1.2.3