turning off showmatch

127 views
Skip to first unread message

Dan Heller

unread,
Dec 2, 2008, 2:42:22 PM12/2/08
to vim...@googlegroups.com
I want to turn off showmatch, but it doesn't seem to have any effect.
I use ":set nosm" or ":set noshowmatch" to no avail.
I searched for info about this on the forums and other places, but
nothing came up.
Finally, a google search found a document that showed someone else
asked the same
question in an IRC chat, but no one answered it.

That's all the info I was able to find. Info appreciated.

--

Dan Heller
http://www.danheller.com/

sc

unread,
Dec 2, 2008, 3:52:44 PM12/2/08
to vim...@googlegroups.com
On Tuesday 02 December 2008 1:42 pm, Dan Heller wrote:
>
> I want to turn off showmatch, but it doesn't seem to have any effect.
> I use ":set nosm" or ":set noshowmatch" to no avail.
> I searched for info about this on the forums and other places, but
> nothing came up.
> Finally, a google search found a document that showed someone else
> asked the same
> question in an IRC chat, but no one answered it.

is it possible what you are really after is the 'nohlsearch'
option?

sc


Dan Heller

unread,
Dec 2, 2008, 3:59:36 PM12/2/08
to vim...@googlegroups.com


Dan Heller
http://www.danheller.com/



I'm not sure I see the connection -- showmatch is an entirely different function.

To be clear, vim is doing the showmatch behavior -- it puts the cursor on BOTH the open and close bracket/brace/paren -- and I want to turn this off. I can't. My "showmatch" setting is off, but the behavior doesn't turn off. What's wrong?

My linux version is:
VIM - Vi IMproved 7.0 (2006 May 7, compiled Aug 29 2007 11:52:41)
Included patches: 1-122, 234-235, 39

But, my mac version of vim does the same thing. It's version is
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 25 2008 19:37:57)
Included patches: 1-22
 

Mr. Shawn H. Corey

unread,
Dec 2, 2008, 4:37:16 PM12/2/08
to vim...@googlegroups.com
On Tue, 2008-12-02 at 12:59 -0800, Dan Heller wrote:
> To be clear, vim is doing the showmatch behavior -- it puts the cursor
> on
> BOTH the open and close bracket/brace/paren -- and I want to turn this
> off.
> I can't. My "showmatch" setting is off, but the behavior doesn't turn
> off.
> What's wrong?

No, showmatch jumps the cursor to the matching bracket, et al. when the
closing bracket is typed. See :help showmatch

When I place the cursor on a bracket, the corresponding one's background
is change to cyan. This is not controlled by showmatch. Is this the
behaviour you're talking about?


--
Just my 0.00000002 million dollars worth,
Shawn

The key to success is being too stupid to realize you can fail.

Dan Heller

unread,
Dec 2, 2008, 4:42:26 PM12/2/08
to vim...@googlegroups.com
On Tue, Dec 2, 2008 at 1:37 PM, Mr. Shawn H. Corey <shawn...@magma.ca> wrote:

On Tue, 2008-12-02 at 12:59 -0800, Dan Heller wrote:
> To be clear, vim is doing the showmatch behavior -- it puts the cursor
> on
> BOTH the open and close bracket/brace/paren -- and I want to turn this
> off.
> I can't. My "showmatch" setting is off, but the behavior doesn't turn
> off.
> What's wrong?

No, showmatch jumps the cursor to the matching bracket, et al. when the
closing bracket is typed.  See :help showmatch

When I place the cursor on a bracket, the corresponding one's background
is change to cyan.  This is not controlled by showmatch.  Is this the
behaviour you're talking about?

sigh...
I just want to turn it off -- that's entirely different.

Now, it just so happens that my terminal emulation doesn't "jump" the cursor, or anything. It merely places TWO blocks at the start and end of the matching brackets. See the attached screenshot.

But, all of that is irrelevant. I just want it off.

showmatch.jpg

Mr. Shawn H. Corey

unread,
Dec 2, 2008, 4:50:36 PM12/2/08
to vim...@googlegroups.com
On Tue, 2008-12-02 at 13:42 -0800, Dan Heller wrote:
> I just want to turn it off -- that's entirely different.
>
> Now, it just so happens that my terminal emulation doesn't "jump" the
> cursor, or anything. It merely places TWO blocks at the start and end
> of the
> matching brackets. See the attached screenshot.
>
> But, all of that is irrelevant. I just want it off.
>

showmatch jumps the cursor. I think you're talking about a plugin call
pi_paren.txt (see :help pi_paren ) To turn it off

:NoMatchParen

To turn it back on

:DoMatchParen

Matt Wozniski

unread,
Dec 2, 2008, 5:14:32 PM12/2/08
to vim...@googlegroups.com
On Tue, Dec 2, 2008 at 4:50 PM, Mr. Shawn H. Corey wrote:
>
> On Tue, 2008-12-02 at 13:42 -0800, Dan Heller wrote:
>> I just want to turn it off -- that's entirely different.
>>
>> Now, it just so happens that my terminal emulation doesn't "jump" the
>> cursor, or anything. It merely places TWO blocks at the start and end
>> of the
>> matching brackets. See the attached screenshot.
>>
>> But, all of that is irrelevant. I just want it off.

Not irrelevant at all, since the screenshot shows that you weren't
talking about 'showmatch' at all, but the 'matchparen' plugin...

> showmatch jumps the cursor. I think you're talking about a plugin call
> pi_paren.txt (see :help pi_paren ) To turn it off
>
> :NoMatchParen
>
> To turn it back on
>
> :DoMatchParen

See :help matchparen - which tells you that to disable the plugin
completely, you can use the (unintuitive, I know) command

let loaded_matchparen = 1

in your ~/.vimrc

~Matt

Dan Heller

unread,
Dec 2, 2008, 5:56:45 PM12/2/08
to vim...@googlegroups.com
 I think you're talking about a plugin call
pi_paren.txt  (see :help pi_paren )  To turn it off

:NoMatchParen

FINALLY! Man, that was aggravating.
How can I prevent the loading of the plugin in the first place?
 

Mr. Shawn H. Corey

unread,
Dec 2, 2008, 6:13:57 PM12/2/08
to vim...@googlegroups.com
On Tue, 2008-12-02 at 14:56 -0800, Dan Heller wrote:
> FINALLY! Man, that was aggravating.
> How can I prevent the loading of the plugin in the first place?
>

In vim, type

:help matchparen

and search for "avoid loading this plugin"

Cory Echols

unread,
Dec 2, 2008, 4:04:54 PM12/2/08
to vim...@googlegroups.com

Or perhaps the matchparen standard plugin has become enabled. You
can run the :NoMatchParen command to shut it off. ":he matchparen"
has instructions for how to disable it altogether.

You can also find out where 'showmatch' might be getting set by
setting the 'verbose' option to non-zero or using the ":verbose"
command. You can see ":he :set-verbose" for more info on that one.

Charles Campbell

unread,
Dec 3, 2008, 1:46:39 PM12/3/08
to vim...@googlegroups.com

By putting

let g:loaded_matchparen = 1

in your .vimrc. Most plugins prevent double-loading by testing if
g:loaded_SomePlugin exists; if so, loading is aborted. Hence, with this
command you're telling matchparen not to bother loading.

Regards,
Chip Campbell

Reply all
Reply to author
Forward
0 new messages