| To: vim-dev@vim.org |
| Subject: patch 7.1.082 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.1.082 |
| Problem: After a ":split" the matchparen highlighting isn't there. |
| Solution: Install a WinEnter autocommand. Also fixes that after |
| ":NoMatchParen" only the current window is updated. (Martin Toft) |
| Files: runtime/doc/pi_paren.txt, runtime/plugin/matchparen.vim |
| |
| |
| |
| |
| |
| *** 12,19 **** |
| 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. |
| |
| To disable the plugin after it was loaded use this command: > |
| |
| --- 12,19 ---- |
| You can avoid loading this plugin by setting the "loaded_matchparen" variable: > |
| :let loaded_matchparen = 1 |
| |
| ! The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to |
| ! redefine the match highlighting. |
| |
| To disable the plugin after it was loaded use this command: > |
| |
| |
| |
| |
| *** 1,6 **** |
| " Vim plugin for showing matching parens |
| " Maintainer: Bram Moolenaar <Bram@vim.org> |
| ! " Last Change: 2007 Jul 30 |
| |
| " Exit quickly when: |
| " - this plugin was already loaded (or disabled) |
| --- 1,6 ---- |
| " Vim plugin for showing matching parens |
| " Maintainer: Bram Moolenaar <Bram@vim.org> |
| ! " Last Change: 2007 Aug 8 |
| |
| " Exit quickly when: |
| " - this plugin was already loaded (or disabled) |
| |
| *** 13,19 **** |
| |
| augroup matchparen |
| " Replace all matchparen autocommands |
| ! autocmd! CursorMoved,CursorMovedI * call s:Highlight_Matching_Pair() |
| augroup END |
| |
| " Skip the rest if it was already done. |
| --- 13,19 ---- |
| |
| augroup matchparen |
| " Replace all matchparen autocommands |
| ! autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair() |
| augroup END |
| |
| " Skip the rest if it was already done. |
| |
| *** 126,132 **** |
| 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 |
| |
| let &cpo = cpo_save |
| --- 126,133 ---- |
| endfunction |
| |
| " Define commands that will disable and enable the plugin. |
| ! command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen | |
| ! \ au! matchparen |
| ! command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved |
| |
| let &cpo = cpo_save |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 82, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 195. Your cat has its own home page. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |