aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/auditory.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim
index e214974..994b64e 100644
--- a/autoload/auditory.vim
+++ b/autoload/auditory.vim
@@ -169,20 +169,19 @@ function! s:GalaxyFarFarAway()
endfunction
-let s:galaxy_far_far_away = 0
function! auditory#ToggleGalaxyFarFarAway()
- if s:galaxy_far_far_away
+ if g:auditory_galaxy_far_far_away
augroup auditory#insert_mode
autocmd!
autocmd CursorMovedI * call auditory#PlayScale()
augroup END
- let s:galaxy_far_far_away = 0
+ let g:auditory_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
+ let g:auditory_galaxy_far_far_away = 1
endif
endfunction