From 73f011c6b22a65540a8fbda8739cf259e77dbd21 Mon Sep 17 00:00:00 2001 From: "Vlad V. Teterya" Date: Sun, 6 Oct 2013 01:18:58 +0300 Subject: [PATCH] fix broken cpoptions --- plugin/AutoClose.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/AutoClose.vim b/plugin/AutoClose.vim index d91ba8b..9c0e637 100644 --- a/plugin/AutoClose.vim +++ b/plugin/AutoClose.vim @@ -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') @@ -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: