aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2015-08-16 02:26:56 -0400
committerTeddy Wing2015-08-16 02:26:56 -0400
commitf3444f5dcfa269eee62b8daf552b3ed29a43aa04 (patch)
treed60023affc58e6cd8b0fea78031af718050231df /plugin
parenta612f8fb835df92648401606dec6c2d07fa3ae4b (diff)
downloadauditory.vim-f3444f5dcfa269eee62b8daf552b3ed29a43aa04.tar.bz2
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.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auditory.vim3
1 files changed, 2 insertions, 1 deletions
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()