Improvement over standard matchparen plugin
Pull request Compare This branch is 2 commits ahead of vim-scripts:master.
Failed to load latest commit information.
plugin guess the ruler width if one is not available Jun 13, 2012
README document the MP_rulerwidth variable Jun 13, 2012


This is a mirror of

Improves over standard matchparen.vim plugin by echoing line containing matching bracket in the status line so you can quickly see which block is terminated by this paren.  Also scans for braces/parens which are off-screen.

If you write functions or blocks like this:
if (condition)
the plugin will echo the line "if (condition)" and not the lone "{".

By default, the plugin scans the line containing the opening brace and the two lines above that, looking for the statement that begins the block, be it a loop or function definition.  If you want more or less, set it in the variable g:MP_stmt_thresh.

If you use a custom ruler format, the plugin might generate messages too long for the command bar and you will be prompted to continue like so: "Press ENTER or type command to continue". To avoid this, set a variable containing your ruler length in your vimrc:

let MP_rulerwidth=30