1
0
forked from aniani/vim

updated for version 7.0c03

This commit is contained in:
Bram Moolenaar
2006-03-29 21:18:24 +00:00
parent 86ca6e3b8c
commit e2f98b95c8
39 changed files with 1030 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
" Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2006 Mar 14
" Last Change: 2006 Mar 29
" Exit quickly when:
" - this plugin was already loaded (or disabled)
@@ -63,15 +63,22 @@ function! s:Highlight_Matching_Pair()
" Figure out the arguments for searchpairpos().
" Restrict the search to visible lines with "stopline".
" And avoid searching very far (e.g., for closed folds)
if i % 2 == 0
let s_flags = 'nW'
let c2 = plist[i + 1]
let stopline = line('w$')
if stopline > c_lnum + 100
let stopline = c_lnu + 100
endif
else
let s_flags = 'nbW'
let c2 = c
let c = plist[i - 1]
let stopline = line('w0')
if stopline < c_lnum - 100
let stopline = c_lnu - 100
endif
endif
if c == '['
let c = '\['