aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autoload/auditory.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim
index 2662d49..a0a97ec 100644
--- a/autoload/auditory.vim
+++ b/autoload/auditory.vim
@@ -435,10 +435,9 @@ let s:mappings['<c-r>'] = {
function! auditory#AssignNormalModeMappings()
for [key, value] in items(s:mappings)
- let l:pipe = ''
- if match(value, 'exec') !=# -1
- let l:pipe = ' \| '
- endif
+ " If this an `execute` mapping, add a pipe
+ let l:pipe = match(value.map_to, 'exec') !=# -1 ? ' \| ' : ''
+
echom 'nmap <silent> ' . key . ' :<c-u>call auditory#Play("' . value.audio . '")' . l:pipe . value.map_to
endfor
endfunction