{"id":129,"date":"2009-04-05T19:10:08","date_gmt":"2009-04-05T16:10:08","guid":{"rendered":"http:\/\/www.held.org.il\/blog\/?p=129"},"modified":"2012-05-21T02:28:54","modified_gmt":"2012-05-20T23:28:54","slug":"vim-whole-word-search","status":"publish","type":"post","link":"http:\/\/www.held.org.il\/blog\/2009\/04\/vim-whole-word-search\/","title":{"rendered":"Vim whole word search"},"content":{"rendered":"<p>In perl regexp syntax, <strong>\\b <\/strong>(<em>b<\/em> means <em>bareword<\/em>) can be used for searching a whole word.<strong> I.e. \\b<\/strong>text<strong>\\b:<\/strong><\/p>\n<p><strong>Will match: <\/strong>text, @text, &lt;space here&gt;text!, etc<\/p>\n<p><strong>Won't match:<\/strong> textile, mytext.<\/p>\n<p>I've been looking for a similar feature in vim for months, with no luck, until today. I've found out how to do that, the syntax is simply\u00c2\u00a0 <span style=\"color: #ff99cc; font-size: 145%;\"><strong>\\&lt;text\\&gt;<\/strong><\/span>. Works for search mode (\/,?), substitute (:s), and probably for other modes as well.<\/p>\n<p>Actually that's what the #, * keys do (search for the under-the-cursor whole word), and that's how I found that out.<\/p>\n<p>Goodie.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In perl regexp syntax, \\b (b means bareword) can be used for searching a whole word. I.e. \\btext\\b: Will match: text, @text, &lt;space here&gt;text!, etc Won&#8217;t match: textile, mytext. I&#8217;ve been looking for a similar feature in vim for months, with no luck, until today. I&#8217;ve found out how to do that, the syntax is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[198,118,124],"_links":{"self":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}