Mirror of the Vim source from https://github.com/vim/vim
Revision | 048f26eb43a348e49fc4f9deaca03779c2de595e (tree) |
---|---|
Zeit | 2007-08-19 01:21:50 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.1-082
@@ -12,8 +12,8 @@ | ||
12 | 12 | You can avoid loading this plugin by setting the "loaded_matchparen" variable: > |
13 | 13 | :let loaded_matchparen = 1 |
14 | 14 | |
15 | -The plugin installs CursorMoved autocommands to redefine the match | |
16 | -highlighting. | |
15 | +The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to | |
16 | +redefine the match highlighting. | |
17 | 17 | |
18 | 18 | To disable the plugin after it was loaded use this command: > |
19 | 19 |
@@ -1,6 +1,6 @@ | ||
1 | 1 | " Vim plugin for showing matching parens |
2 | 2 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
3 | -" Last Change: 2007 Jul 30 | |
3 | +" Last Change: 2007 Aug 8 | |
4 | 4 | |
5 | 5 | " Exit quickly when: |
6 | 6 | " - this plugin was already loaded (or disabled) |
@@ -13,7 +13,7 @@ | ||
13 | 13 | |
14 | 14 | augroup matchparen |
15 | 15 | " Replace all matchparen autocommands |
16 | - autocmd! CursorMoved,CursorMovedI * call s:Highlight_Matching_Pair() | |
16 | + autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair() | |
17 | 17 | augroup END |
18 | 18 | |
19 | 19 | " Skip the rest if it was already done. |
@@ -126,7 +126,8 @@ | ||
126 | 126 | endfunction |
127 | 127 | |
128 | 128 | " Define commands that will disable and enable the plugin. |
129 | -command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen | |
130 | -command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved | |
129 | +command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen | | |
130 | + \ au! matchparen | |
131 | +command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved | |
131 | 132 | |
132 | 133 | let &cpo = cpo_save |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 82, | |
671 | +/**/ | |
670 | 672 | 81, |
671 | 673 | /**/ |
672 | 674 | 80, |