aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/auditory.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/auditory.vim')
-rw-r--r--plugin/auditory.vim18
1 files changed, 13 insertions, 5 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index 821c5ba..411a812 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -11,13 +11,21 @@ if !executable('mplayer')
endif
-augroup auditory#insert_mode
- autocmd!
- autocmd CursorMovedI * call auditory#PlayScale()
-augroup END
+if !exists('g:auditory_on')
+ let g:auditory_on = 0
+endif
+
+if !exists('g:auditory_galaxy_far_far_away')
+ let g:auditory_galaxy_far_far_away = 0
+endif
+command! AuditoryOn call auditory#AssignMappings()
+command! AuditoryOff call auditory#Unmap()
+command! AuditoryToggle call auditory#ToggleMappings()
command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway()
-call auditory#NormalModeMappings()
+if g:auditory_on
+ call auditory#AssignMappings()
+endif