comparison runtime/plugin/matchparen.vim @ 757:8b0484fd9119

updated for version 7.0224
author vimboss
date Tue, 14 Mar 2006 22:55:34 +0000
parents 1babf94e0b24
children 1f929f3ca806
comparison
equal deleted inserted replaced
756:f0edbe50b896 757:8b0484fd9119
1 " Vim plugin for showing matching parens 1 " Vim plugin for showing matching parens
2 " Maintainer: Bram Moolenaar <Bram@vim.org> 2 " Maintainer: Bram Moolenaar <Bram@vim.org>
3 " Last Change: 2006 Mar 04 3 " Last Change: 2006 Mar 14
4 4
5 " Exit quickly when: 5 " Exit quickly when:
6 " - this plugin was already loaded (or disabled) 6 " - this plugin was already loaded (or disabled)
7 " - when 'compatible' is set 7 " - when 'compatible' is set
8 " - the "CursorMoved" autocmd event is not availble. 8 " - the "CursorMoved" autocmd event is not availble.
20 20
21 " Skip the rest if it was already done. 21 " Skip the rest if it was already done.
22 if exists("*s:Highlight_Matching_Pair") 22 if exists("*s:Highlight_Matching_Pair")
23 finish 23 finish
24 endif 24 endif
25
26 let cpo_save = &cpo
27 set cpo-=C
25 28
26 " The function that is invoked (very often) to define a ":match" highlighting 29 " The function that is invoked (very often) to define a ":match" highlighting
27 " for any matching paren. 30 " for any matching paren.
28 function! s:Highlight_Matching_Pair() 31 function! s:Highlight_Matching_Pair()
29 " Remove any previous match. 32 " Remove any previous match.
100 endfunction 103 endfunction
101 104
102 " Define commands that will disable and enable the plugin. 105 " Define commands that will disable and enable the plugin.
103 command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen 106 command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen
104 command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved 107 command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved
108
109 let &cpo = cpo_save