comparison runtime/plugin/matchparen.vim @ 2034:7bc41231fbc7

Update runtime files.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 20:54:52 +0100
parents 1c597397f006
children 916c90b37ea9
comparison
equal deleted inserted replaced
2033:de5a43c5eedc 2034:7bc41231fbc7
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: 2008 Feb 27 3 " Last Change: 2008 Sep 03
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.
19 " Skip the rest if it was already done. 19 " Skip the rest if it was already done.
20 if exists("*s:Highlight_Matching_Pair") 20 if exists("*s:Highlight_Matching_Pair")
21 finish 21 finish
22 endif 22 endif
23 23
24 let cpo_save = &cpo 24 let s:cpo_save = &cpo
25 set cpo-=C 25 set cpo-=C
26 26
27 " The function that is invoked (very often) to define a ":match" highlighting 27 " The function that is invoked (very often) to define a ":match" highlighting
28 " for any matching paren. 28 " for any matching paren.
29 function! s:Highlight_Matching_Pair() 29 function! s:Highlight_Matching_Pair()
145 " Define commands that will disable and enable the plugin. 145 " Define commands that will disable and enable the plugin.
146 command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen | 146 command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen |
147 \ au! matchparen 147 \ au! matchparen
148 command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved 148 command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved
149 149
150 let &cpo = cpo_save 150 let &cpo = s:cpo_save
151 unlet s:cpo_save