aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-11-09 01:48:42 -0500
committerTeddy Wing2014-11-09 01:48:42 -0500
commit150485631767df9309d94810b3678d1594e9c93b (patch)
tree1c49e9e318f99eb5eebf6107ab953c6cb473c970
parentc371a40eb737965c97fd55e123eee799c2aac8c8 (diff)
downloadauditory.vim-150485631767df9309d94810b3678d1594e9c93b.tar.bz2
plugin/auditory.vim: Add Normal mode hjkl mappings
Add mappings for single-character movement using a pass-through that plays the appropriate movement audio file.
-rw-r--r--plugin/auditory.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index f8b1bac..193e6b0 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -52,6 +52,18 @@ endfunction
" auditory#InsertGalaxyFarFarAway()
+" Normal mode
+function! s:NormalModeMappings()
+ nnoremap <silent> h :<c-u>call auditory#Play('./Resources/Normal_Mode/Left.wav') \| exec 'normal!' v:count1 . 'h'<cr>
+ nnoremap <silent> j :<c-u>call auditory#Play('./Resources/Normal_Mode/Down.wav') \| exec 'normal!' v:count1 . 'j'<cr>
+ nnoremap <silent> k :<c-u>call auditory#Play('./Resources/Normal_Mode/Up.wav') \| exec 'normal!' v:count1 . 'k'<cr>
+ nnoremap <silent> l :<c-u>call auditory#Play('./Resources/Normal_Mode/Right.wav') \| exec 'normal!' v:count1 . 'l'<cr>
+endfunction
+
+call s:NormalModeMappings()
+
+
+
augroup auditory#insert_mode
autocmd!
" autocmd InsertEnter * call s:PlayInsertEnter()