From 9779b2cee0ab633cfdc7c71f3544aa9741957b7d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 18 Jul 2015 21:01:03 -0400 Subject: auditory.vim: Assign mappings with AssignNormalModeMappings() Assign our normal mode mappings with our new function that uses the mapping dictionary. --- autoload/auditory.vim | 2 +- plugin/auditory.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/auditory.vim b/autoload/auditory.vim index a0a97ec..2176a4c 100644 --- a/autoload/auditory.vim +++ b/autoload/auditory.vim @@ -438,7 +438,7 @@ function! auditory#AssignNormalModeMappings() " If this an `execute` mapping, add a pipe let l:pipe = match(value.map_to, 'exec') !=# -1 ? ' \| ' : '' - echom 'nmap ' . key . ' :call auditory#Play("' . value.audio . '")' . l:pipe . value.map_to + execute 'nmap ' . key . ' :call auditory#Play("' . value.audio . '")' . l:pipe . value.map_to endfor endfunction diff --git a/plugin/auditory.vim b/plugin/auditory.vim index 821c5ba..ba46fa2 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -20,4 +20,4 @@ augroup END command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() -call auditory#NormalModeMappings() +call auditory#AssignNormalModeMappings() -- cgit v1.2.3