1
0
forked from aniani/vim

updated for version 7.1-082

This commit is contained in:
Bram Moolenaar
2007-08-18 16:21:50 +00:00
parent 6529c101c3
commit fa2e044471
3 changed files with 9 additions and 6 deletions

View File

@@ -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: > You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
:let loaded_matchparen = 1 :let loaded_matchparen = 1
The plugin installs CursorMoved autocommands to redefine the match The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to
highlighting. redefine the match highlighting.
To disable the plugin after it was loaded use this command: > To disable the plugin after it was loaded use this command: >

View File

@@ -1,6 +1,6 @@
" Vim plugin for showing matching parens " Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2007 Jul 30 " Last Change: 2007 Aug 8
" Exit quickly when: " Exit quickly when:
" - this plugin was already loaded (or disabled) " - this plugin was already loaded (or disabled)
@@ -13,7 +13,7 @@ let g:loaded_matchparen = 1
augroup matchparen augroup matchparen
" Replace all matchparen autocommands " Replace all matchparen autocommands
autocmd! CursorMoved,CursorMovedI * call s:Highlight_Matching_Pair() autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair()
augroup END augroup END
" Skip the rest if it was already done. " Skip the rest if it was already done.
@@ -126,7 +126,8 @@ function! s:Highlight_Matching_Pair()
endfunction endfunction
" Define commands that will disable and enable the plugin. " Define commands that will disable and enable the plugin.
command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen |
command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved \ au! matchparen
command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved
let &cpo = cpo_save let &cpo = cpo_save

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
82,
/**/ /**/
81, 81,
/**/ /**/