aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/auditory.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim
index ffa2b1e..e914a03 100644
--- a/autoload/auditory.vim
+++ b/autoload/auditory.vim
@@ -538,3 +538,14 @@ function! auditory#Unmap()
call auditory#UnmapInsert()
endfunction
+
+
+function! auditory#ToggleMappings()
+ if g:auditory_on
+ call auditory#Unmap()
+ let g:auditory_on = 0
+ else
+ call auditory#AssignMappings()
+ let g:auditory_on = 1
+ endif
+endfunction