aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2015-08-16 02:43:09 -0400
committerTeddy Wing2015-08-16 02:43:09 -0400
commit8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e (patch)
treeae9a1937f4b2a638378a4cd5b15d842390fc7454 /plugin
parentda0a9cf9fba990b5d39041b43b7257599fd4c5a4 (diff)
downloadauditory.vim-8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e.tar.bz2
Add function and command to toggle mappings
* Create `auditory#ToggleMappings()` that turns sounds on if they're off and off if they're on * Create an `:AuditoryToggle` command that runs the toggle function in a more user-friendly callable way With a toggle command, turning Auditory on or off can be as simple as hitting 1 custom mapping. With our previous `AuditoryOn` and `AuditoryOff`, you would have to use 2 mappings: 1 for on and another for off.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auditory.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index 39ae283..378fd39 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -18,6 +18,7 @@ endif
command! AuditoryOn call auditory#AssignMappings()
command! AuditoryOff call auditory#Unmap()
+command! AuditoryToggle call auditory#ToggleMappings()
command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway()