diff options
Diffstat (limited to 'plugin/auditory.vim')
| -rw-r--r-- | plugin/auditory.vim | 25 | 
1 files changed, 23 insertions, 2 deletions
| diff --git a/plugin/auditory.vim b/plugin/auditory.vim index 7f2904a..e15f42e 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -169,13 +169,34 @@ call s:NormalModeMappings() +let s:galaxy_far_far_away = 0 +function! auditory#ToggleGalaxyFarFarAway() +	if s:galaxy_far_far_away +		augroup auditory#insert_mode +			autocmd! +			autocmd CursorMovedI * call <SID>PlayScale() +		augroup END +		let s:galaxy_far_far_away = 0 +	else +		augroup auditory#insert_mode +			autocmd! +			autocmd CursorMovedI * call <SID>GalaxyFarFarAway() +		augroup END +		let s:galaxy_far_far_away = 1 +	endif +endfunction + + +  augroup auditory#insert_mode  	autocmd!  	" autocmd InsertEnter * call s:PlayInsertEnter()  	" autocmd InsertLeave * call s:PlayInsertLeave() -	" autocmd CursorMovedI * call s:PlayScale() -	autocmd CursorMovedI * call <SID>GalaxyFarFarAway() +	autocmd CursorMovedI * call <SID>PlayScale()  augroup END +command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() + +  nnoremap <leader>so :source %<cr> | 
