VIM 7 :: RE: turn off paren/parenthesis/whatever highlighting
The fix submitted before isn't reliable. That piece of magic in .vimrc does the job:
let loaded_matchparen = 1
It tells some plug-in/script/whatever that it has already did the job. If you put that in .vimrc
- it would think that way always and would not load anymore. Nice.
P.S. The Tip was found here :help pi_paren.txt
. It would be all really nice if computers had a special interface to read my mind - and tell me how the devels named particular feature. That way I will not need to waste weeks to find the corresponding help entry.
38 comments:
Thank You!!!
Matching parens have been slowly driving me insane.
Looking through the vim syntax scripts wasn't helping.
Does anyone know how *not* to have matching parentheses highlighted, but to still have some highlighted warning when parentheses are not matching, e.g. {]?
Single unmatched ']' is already highlighted.
Paren matching is implemented quite simply in VIM - there is NO complete on-the-fly syntax parsing of whole file like done in Emacs.
The trick is simple. For example, unmatched '()' are caught as '({' or '([' - in other words inside of parens curly brackets may not occur. Same goes for square brackets.
To catch the case of unmatched '{', one would need to scan whole file, and yet the unmatched bracket would appear as if it was in the end of function/file. The curly brackets may have occurrences of other brackets inside, so the trick used for '[]' and '()' doesn't work.
P.S. I heard someone did something similar for case of properly indented file - when lines with opening and closing curly brackets are indented identically. I will try to think about it and if something would come to my mind, I'll post it.
You are my hero! I was about to revert to VIM 6!
Thank you, thank you, thank you. I've been driven to distraction by matching parens and I would *never* have found the "let loaded_matchparen = 1" solution on my own.
Nice tip. Cheers.
Good lord I was about to go absolutely insane with the stupid matchparen stuff. Great tip! Whoever decided this should be on by default should be shot.
Good grief that has been annoying me for months. Thanks!
Thank you for ridding me of this stupid feature!
Thank you! I had to stop using VIM on a new machine for the last two days because of this feature.
Thanks for removing a irritation from my life, by showing me how to get rid of the matching parenthese so-called feature.
Thank you so much for this! I just recently upgraded 4 machines (2 Linux, 2 OS X) and the latest OS versions apparently all shipped with VIM 7. This abomination has been driving me nuts until I finally found this page! I already know about the % command and I can do my own matching in my head anyway, thankyouverymuch. I don't need that monstrous $#!@ing distraction every single time the cursor happens to go over a paren or bracket! Sheesh.
I agree with skaven about whoever made this the default -- while I'm fully against the death penalty, I'm willing to make an exception in this case!
Thank you, you are a hero. Since Debian Etch this has been the default and made it into a nightmare to program numerics, or to write Latex code.
Thanks a bunch! I enjoy the matching parentheses feature, but my 2.0 GHz machine was lagging and not moving the cursor as quickly as it should be able to when moving the cursor around over a bunch of parentheses, so I had to get rid of it.
Thanks much. As everyone else, the extra block cursor was driving me insane.
Also in Vim7: in insert mode, my backspace wouldn't back up over tabstops or newlines. set backspace=1 fixed that for me.
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU.
That has been bothering me for MONTHS, and today I finally got around to searching for a resolution for it.
Sanity has been restored to my vi life. THANK YOU SO MUCH.
Wow.
Thanks god you found an posted this. The world looks so much brighter again with the right fix to ghis overly annoying unfeature.
Quote :
It would be all really nice if computers had special interface to read my mind and tell how devels named particular feature. That way I would not need waste weeks to find corresponding help entry.
: End Quote
That special interface comes in the form of your kind self for writting about this fix and google making it searchable.
I thank you, google and lots of others for making that special interface.
Happy computing to ya all :)
Vi(m) has been around for a number of years and is one the few pieces of software that a really mature. However, everytime I install a new version of linux I have to spend time dis-improving it.
Thank you very much for your help!
p.
Hey, can anyone tell me how to turn on paren-matching-highlighting? Personally I find it difficult to match all of my parens. I'm not writing in scheme or anything, but I think it'd still be handy. thx!
You RULE my WORLD!!! Thank you. It's just more annoying than helpful.
For those looking to pair parens/brakets/etc, I do not know how to make this happen in your syntax file (via coloring). However put your cursor on a paren in command mode (not insert), use [shift]+5, and it will zoom the cursor to the matching pair.
Thanks a lot for this!
Let me add my praise to the stack. Thank You! To whom do I make out the check?
> To whom do I make out the check?
It might sound ironic in the context, but there is a VIM sponsorship/registration where you can vote for features - with your money.
http://www.vim.org/sponsor/index.php
P.S. I'm in no way affiliated with VIM.org and VIM development team. Was myself "registered user" for couple of years ^_^
months and months and months, and i was finally fed up and had enough time to find a resolution. tried all the syntax stuff, would never have found this.
THANK YOU!
Thank you! This was such an annoying feature. No more though! ;-)
Thanks!!! Whoever decided that this should be default enabled behavior should be taken out and beaten with a hose.
++ on the hose beating, ditch that default matching!!
Thank you!
THANK YOU!
Old post i know but cheers, Those damn blue blobs in my scripts have been driving me crazy!!. Thanx for the tip!
Another big thanks for helping me getting rid of the lamest feature ever! Showmatch was one thing, but this... Well, it's gone!
Thanks, this was a major help :)
Holy cow! You've saved us all!
THANK YOU!
Thank you!!! This has been driving me crazy for over a year!
Thank you, thank you, thank you! I went nuts due to this enhancement.
I've been in therapy for months!!! Issues all resolved with this one clue. Thanks!
God bless you for this post. Like everyone else, sm has driven me almost insane.
Post a Comment