Skip to content

Commit

Permalink
Add verbose information when toggling between AutoCloseOn and AutoClo…
Browse files Browse the repository at this point in the history
…seOff.
  • Loading branch information
Townk committed Aug 23, 2008
1 parent e02d482 commit deed4fb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plugin/autoclose.vim
Expand Up @@ -106,6 +106,15 @@ function! s:Backspace()
return "\<BS>"
endfunction

function! s:ToggleAutoClose()
let s:running = !s:running
if s:running
echo "AutoClose ON"
else
echo "AutoClose OFF"
endif
endfunction

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Configuration
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down Expand Up @@ -158,7 +167,7 @@ exec "inoremap <silent> <BS> " . s:turn_ve_on . "<C-R>=<SID>Backspace()<CR>" . s
" Define convenient commands
command! AutoCloseOn :let s:running = 1
command! AutoCloseOff :let s:running = 0
command! AutoCloseToggle :let s:running = !s:running
command! AutoCloseToggle :call s:ToggleAutoClose()

" Clean up
unlet s:turn_ve_on
Expand Down

0 comments on commit deed4fb

Please sign in to comment.