{"id":57,"date":"2014-09-28T00:00:53","date_gmt":"2014-09-27T22:00:53","guid":{"rendered":"http:\/\/kurt.www.pinboard.jp\/blog\/?p=57"},"modified":"2014-07-20T16:51:23","modified_gmt":"2014-07-20T14:51:23","slug":"dont-show-matching-parentheses","status":"publish","type":"post","link":"http:\/\/kurt.www.pinboard.jp\/blog\/kurt\/57\/","title":{"rendered":"matching parentheses"},"content":{"rendered":"<p>Have you seen in vim that it quickly jumps to the matching opening parenthesis (<code>{}()[]<\/code>) when typing a closing parenthesis? Useful when writing code.<!--more-->  Helps to minimize syntax problems. In case your installation is not set up to do this you can enable it easily. If you just want to enable it temporarily for the current editing session, use the command <span style=\"color: #008000\">:set sm<\/span>. Better, though, if you enable it in your <code>.vimrc<\/code> file for all editing sessions:<\/p>\n<pre style=\"background-color: lightyellow; color: green;\">:set showmatch          \" show matching opening parenthesis when\r\n                        \" typing a closing parenthesis\r\n<\/pre>\n<p>But I hate it if vim highlights matching parentheses when I simply move through a file, it distracts me if something lights up somewhere else. If I dislike something, I try to get rid of it. It turns out this is easily disabled. The highlighting of matching parenteses is done in a standard module. In your <code>.vimrc<\/code> file just disable the loading of the plugin with<\/p>\n<pre style=\"background-color: lightyellow; color: green;\">:let loaded_matchparen = 1\r\n                        \" disable highlighting matching parentheses\r\n<\/pre>\n<p>If the cusor currently is on a paranthesis and I want to see where its matching partner is, I simply use the <span style=\"color: #008000\">%<\/span> command.<\/p>\n<table>\n<tbody valign=\"top\">\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">%<\/td>\n<td>jump to matching parenthesis<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Have you seen in vim that it quickly jumps to the matching opening parenthesis ({}()[]) when typing a closing parenthesis? Useful when writing code.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[11],"_links":{"self":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":5,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":64,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions\/64"}],"wp:attachment":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}