LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2014, 07:24 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
How to get vim help on parenthesis matching?


Hi: inside vim, I can type
Code:
:help something
What would 'something' be to get help on parenthesis matching. Specifically, a color block displays over the first match. How do I change the color?
 
Old 01-27-2014, 07:28 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Try
Code:
:help showmatch
Try this to change colours:
Code:
:hi MatchParen cterm=inverse ctermbg=none ctermfg=red

Last edited by anon237; 01-27-2014 at 07:44 AM.
 
1 members found this post helpful.
Old 01-27-2014, 11:39 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank you. As ':help showmatch' shows
Code:
'showmatch sm'   boolean (default off)
                 global
there should be a way to disable parenthesis matching or any other delimiter matching. Do you know it? In my system sm is on.

EDIT: I found it. It's ':NoMatchParen'. There's more: by placing ':let loaded_matchparen=1' in /usr/share/vim/vimrc the plugin responsible for delimiter matching no longer loads! This thing was driving me crazy.

Last edited by stf92; 01-28-2014 at 12:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] awk with pipe delimited file (specific column matching and multiple pattern matching) lolmon Programming 4 08-31-2011 12:17 PM
vim or sed multiline regexp matching eentonig Programming 1 09-08-2008 09:06 AM
highlight matching brackets in vim muddywaters Programming 5 06-26-2006 08:43 AM
Emacs-like paren matching in vim jrdioko Linux - Software 0 01-23-2006 04:28 PM
vim matching parenthesis rohr Linux - Software 2 04-23-2005 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration