diff --git a/plugin/AutoClose.vim b/plugin/AutoClose.vim index d91ba8b..bed8735 100644 --- a/plugin/AutoClose.vim +++ b/plugin/AutoClose.vim @@ -221,7 +221,7 @@ function! s:InsertPair(opener) let l:next = s:GetNextChar() " only add closing pair before space or any of the closepair chars - let close_before = '\s\|\V\[,.;' . escape(join(keys(b:AutoClosePairs) + values(b:AutoClosePairs), ''), ']').']' + let close_before = '\s\|\V\[,.;<>\/' . escape(join(keys(b:AutoClosePairs) + values(b:AutoClosePairs), ''), ']').']' if (l:next == "\0" || l:next =~ close_before) && s:AllowQuote(a:opener, 0) call s:InsertStringAtCursor(b:AutoClosePairs[a:opener]) call s:PushBuffer(b:AutoClosePairs[a:opener]) @@ -366,13 +366,13 @@ function! s:DefineVariables() " The buffer namespace is used internally let defaults = { \ 'AutoClosePairs': AutoClose#DefaultPairs(), - \ 'AutoCloseProtectedRegions': ["Comment", "String", "Character"], + \ 'AutoCloseProtectedRegions': ["Comment"], \ 'AutoCloseSmartQuote': 1, \ 'AutoCloseOn': 1, \ 'AutoCloseSelectionWrapPrefix': 'a', \ 'AutoClosePumvisible': {"ENTER": "\", "ESC": "\"}, \ 'AutoCloseExpandEnterOn': "", - \ 'AutoCloseExpandSpace': 1, + \ 'AutoCloseExpandSpace': 0, \ } " Let the user define if he/she wants the plugin to do special actions when the