aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auditory.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index e0a764a..593617e 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -11,9 +11,16 @@ if !executable('mplayer')
endif
+if !exists('g:auditory_on')
+ let g:auditory_on = 0
+endif
+
+
command! AuditoryOn call auditory#AssignMappings()
command! AuditoryOff call auditory#Unmap()
command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway()
-call auditory#AssignMappings()
+if g:auditory_on ==# 1
+ call auditory#AssignMappings()
+endif