Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion plugin/AutoClose.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if !exists("g:debug_AutoClose") && exists("g:loaded_AutoClose")
endif
let g:loaded_AutoClose = 1

let s:global_cpo = &cpo " store compatible-mode in local variable
let s:cpo_save = &cpo " store compatible-mode in local variable
set cpo&vim " go into nocompatible-mode

if !exists('g:AutoClosePreserveDotReg')
Expand Down Expand Up @@ -539,4 +539,8 @@ augroup END
command! AutoCloseOn :let b:AutoCloseOn = 1
command! AutoCloseOff :let b:AutoCloseOn = 0
command! AutoCloseToggle :call s:ToggleAutoClose()

" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
" vim:sw=4:sts=4: