Tip #1391: Disable match paren restriction (visible lines -> whole file)
tip karma |
Rating 6/7, Viewed by 801
|
created: |
|
November 17, 2006 14:47 |
|
complexity: |
|
basic |
author: |
|
pulp |
|
as of Vim: |
|
|
the matchparen.vim plugin (delivered with vim) restrict paren matching only to the current visible lines.
to change this behavior you need to change the following lines in the file ../plugin/matchparen.vim:
line: 102
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
to:
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip)
and line: 109
if m_lnum > 0 && m_lnum >= line('w0') && m_lnum <= line('w$')
to:
if m_lnum > 0
<<Give back movement to the Dvorak layout. |
Shell script to use grep with gvim >>
Additional Notes
|