summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/pi_paren.txt4
-rw-r--r--runtime/plugin/matchparen.vim9
-rw-r--r--src/version.c2
3 files changed, 9 insertions, 6 deletions
diff --git a/runtime/doc/pi_paren.txt b/runtime/doc/pi_paren.txt
index c83c8703d..53239f742 100644
--- a/runtime/doc/pi_paren.txt
+++ b/runtime/doc/pi_paren.txt
@@ -12,8 +12,8 @@ This plugin is only available if 'compatible' is not set.
You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
:let loaded_matchparen = 1
-The plugin installs CursorMoved autocommands to redefine the match
-highlighting.
+The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to
+redefine the match highlighting.
To disable the plugin after it was loaded use this command: >
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim
index d709c982c..e12ff6560 100644
--- a/runtime/plugin/matchparen.vim
+++ b/runtime/plugin/matchparen.vim
@@ -1,6 +1,6 @@
" Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2007 Jul 30
+" Last Change: 2007 Aug 8
" Exit quickly when:
" - this plugin was already loaded (or disabled)
@@ -13,7 +13,7 @@ let g:loaded_matchparen = 1
augroup matchparen
" Replace all matchparen autocommands
- autocmd! CursorMoved,CursorMovedI * call s:Highlight_Matching_Pair()
+ autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair()
augroup END
" Skip the rest if it was already done.
@@ -126,7 +126,8 @@ function! s:Highlight_Matching_Pair()
endfunction
" Define commands that will disable and enable the plugin.
-command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen
-command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved
+command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen |
+ \ au! matchparen
+command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved
let &cpo = cpo_save
diff --git a/src/version.c b/src/version.c
index 336976eaf..a28301502 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 82,
+/**/
81,
/**/
80,