Mercurial > vim
comparison runtime/plugin/matchparen.vim @ 3082:3502a7f991fc
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Sep 2011 17:55:08 +0200 |
parents | 916c90b37ea9 |
children | 0fcb050fd79d |
comparison
equal
deleted
inserted
replaced
3081:1e50bdaa24f8 | 3082:3502a7f991fc |
---|---|
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: 2010 Nov 16 | 3 " Last Change: 2011 Aug 27 |
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. |
80 let save_cursor = winsaveview() | 80 let save_cursor = winsaveview() |
81 call cursor(c_lnum, c_col - before) | 81 call cursor(c_lnum, c_col - before) |
82 endif | 82 endif |
83 | 83 |
84 " When not in a string or comment ignore matches inside them. | 84 " When not in a string or comment ignore matches inside them. |
85 " We match "escape" for special items, such as listpEscapeSpecial. | 85 " We match "escape" for special items, such as lispEscapeSpecial. |
86 let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' . | 86 let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' . |
87 \ '=~? "string\\|character\\|singlequote\\|escape\\|comment"' | 87 \ '=~? "string\\|character\\|singlequote\\|escape\\|comment"' |
88 execute 'if' s_skip '| let s_skip = 0 | endif' | 88 execute 'if' s_skip '| let s_skip = 0 | endif' |
89 | 89 |
90 " Limit the search to lines visible in the window. | 90 " Limit the search to lines visible in the window. |