From 150485631767df9309d94810b3678d1594e9c93b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 9 Nov 2014 01:48:42 -0500 Subject: 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. --- plugin/auditory.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugin') 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 h :call auditory#Play('./Resources/Normal_Mode/Left.wav') \| exec 'normal!' v:count1 . 'h' + nnoremap j :call auditory#Play('./Resources/Normal_Mode/Down.wav') \| exec 'normal!' v:count1 . 'j' + nnoremap k :call auditory#Play('./Resources/Normal_Mode/Up.wav') \| exec 'normal!' v:count1 . 'k' + nnoremap l :call auditory#Play('./Resources/Normal_Mode/Right.wav') \| exec 'normal!' v:count1 . 'l' +endfunction + +call s:NormalModeMappings() + + + augroup auditory#insert_mode autocmd! " autocmd InsertEnter * call s:PlayInsertEnter() -- cgit v1.2.3