{"id":940,"date":"2013-01-18T10:46:45","date_gmt":"2013-01-18T10:46:45","guid":{"rendered":"http:\/\/www.nathankowald.com\/blog\/?p=940"},"modified":"2016-11-13T17:54:42","modified_gmt":"2016-11-13T17:54:42","slug":"vim-delete-lines-that-dont-match-pattern","status":"publish","type":"post","link":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/","title":{"rendered":"Vim: delete lines that don&#8217;t match pattern"},"content":{"rendered":"<p>Ex command <strong>:v<\/strong> to the rescue!<\/p>\n<pre class=\"prettyprint lang-sh\">:v\/pattern\/d<\/pre>\n<p>Using <strong>:g!<\/strong> will give you the same result as using <strong>:v<\/strong>.<br \/>\n<strong>:g<\/strong> finds lines that do match a pattern.<\/p>\n<p>I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: <strong>:v\/-\/d<\/strong><\/p>\n<p><strong>:v<\/strong> &#8211; find lines not matching your pattern<br \/>\n<strong>d<\/strong> &#8211; delete matches<\/p>\n<hr style=\"margin-top:70px;\">\n<h3>Recently Loved Articles  <a href=\"http:\/\/del.icio.us\/rss\/n8kowald\/shared\"><img decoding=\"async\" class=\"noborder\" title=\"Subscribe to my loved articles feed\" src=\"\/\/www.nathankowald.com\/images\/feed-small.png\" alt=\"\" \/><\/a><\/h3>\n<ul class=\"lovedarticles\">\n<li><a href=\"http:\/\/imgur.com\/a\/ISNRG#0\" target=\"_blank\">2013 CES: Press Conference Slides &#8211; Imgur<\/a> &ndash; <em>Can&#8217;t wait!<\/em><\/li>\n<li><a href=\"http:\/\/rossduggan.ie\/blog\/programming\/naming-things\/\" target=\"_blank\">Naming things | Ross Duggan<\/a> &ndash; <em>Great article about naming software<\/em><\/li>\n<li><a href=\"http:\/\/betabeat.com\/2013\/01\/programmer-outsources-his-job-to-china-so-he-can-get-paid-to-screw-around-on-reddit-all-day\/\" target=\"_blank\">Programmer Secretly Outsources His Job to China So He Can Get Paid to Screw Around on Reddit | Betabeat<\/a><\/li>\n<li><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/page-turner\/fpbddhncmmhkaofhcnkjgcdbgcmomebo\" target=\"_blank\">Chrome Web Store &#8211; Page Turner<\/a> &ndash; <em>My first published Chrome Extension :D<\/em><\/li>\n<li><a href=\"http:\/\/lifehacker.com\/5975599\/ebook-glue-transforms-blogs-into-ebooks\" target=\"_blank\">Ebook Glue Transforms Blogs Into Ebooks<\/a> &ndash; <em>Looks good. Try it.<\/em><\/li>\n<li><a href=\"http:\/\/mystilleef.blogspot.co.uk\/2006\/11\/indentation-with-spaces-considered.html\" target=\"_blank\">Indentation With Spaces Considered Harmful<\/a> &ndash; <em>Using tabs means everyone can use their preferred tab widths in their IDEs.<\/em><\/li>\n<li><a href=\"http:\/\/javascriptshow.com\/\" target=\"_blank\">The Javascript Show<\/a> &ndash; <em>Good JavaScript podcast I found.<\/em><\/li>\n<li><a href=\"http:\/\/thoughtbot.github.com\/vimulator\/\" target=\"_blank\">Vimulator<\/a> &ndash; <em>Helpful for people learning Vim.<\/em><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?feature=player_embedded&#038;v=wmg-sYnMIrA#!\" target=\"_blank\">Drugs at work &#8211; YouTube<\/a> &ndash; <em>haha!<\/em><\/li>\n<li><a href=\"http:\/\/techcrunch.com\/2013\/01\/12\/10-reasons-why-2013-will-be-the-year-you-quit-your-job\/\" target=\"_blank\">10 Reasons Why 2013 Will Be The Year You Quit Your Job | TechCrunch<\/a> &ndash; <em>Good read<\/em><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v &#8211; find lines [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9,7],"tags":[],"class_list":["post-940","post","type-post","status-publish","format-standard","hentry","category-vim","category-web-development"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines\" \/>\n\t<meta name=\"robots\" content=\"noarchive, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Nathan Kowald\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Nathan&#039;s Blog | Web development and useful information\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Vim: delete lines that don\u2019t match pattern \u2014 Nathan&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-01-18T10:46:45+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-11-13T17:54:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Vim: delete lines that don\u2019t match pattern \u2014 Nathan&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#article\",\"name\":\"Vim: delete lines that don\\u2019t match pattern \\u2014 Nathan's Blog\",\"headline\":\"Vim: delete lines that don&#8217;t match pattern\",\"author\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/\\\/www.nathankowald.com\\\/images\\\/feed-small.png\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#articleImage\"},\"datePublished\":\"2013-01-18T10:46:45+10:30\",\"dateModified\":\"2016-11-13T17:54:42+10:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#webpage\"},\"articleSection\":\"Vim, Web Development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/vim\\\/#listItem\",\"name\":\"Vim\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/vim\\\/#listItem\",\"position\":3,\"name\":\"Vim\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/vim\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#listItem\",\"name\":\"Vim: delete lines that don&#8217;t match pattern\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#listItem\",\"position\":4,\"name\":\"Vim: delete lines that don&#8217;t match pattern\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/vim\\\/#listItem\",\"name\":\"Vim\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\",\"name\":\"Nathan Kowald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"Nathan Kowald\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/\",\"name\":\"Nathan Kowald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"Nathan Kowald\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#webpage\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/\",\"name\":\"Vim: delete lines that don\\u2019t match pattern \\u2014 Nathan's Blog\",\"description\":\"Ex command :v to the rescue! :v\\\/pattern\\\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\\\/-\\\/d :v - find lines\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2013\\\/01\\\/vim-delete-lines-that-dont-match-pattern\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"datePublished\":\"2013-01-18T10:46:45+10:30\",\"dateModified\":\"2016-11-13T17:54:42+10:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/\",\"name\":\"Nathan's Blog\",\"description\":\"Web development and useful information\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Vim: delete lines that don\u2019t match pattern \u2014 Nathan's Blog","description":"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines","canonical_url":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/","robots":"noarchive, max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#article","name":"Vim: delete lines that don\u2019t match pattern \u2014 Nathan's Blog","headline":"Vim: delete lines that don&#8217;t match pattern","author":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"publisher":{"@id":"https:\/\/www.nathankowald.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"\/\/www.nathankowald.com\/images\/feed-small.png","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#articleImage"},"datePublished":"2013-01-18T10:46:45+10:30","dateModified":"2016-11-13T17:54:42+10:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#webpage"},"isPartOf":{"@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#webpage"},"articleSection":"Vim, Web Development"},{"@type":"BreadcrumbList","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.nathankowald.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","position":2,"name":"Web Development","item":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/#listItem","name":"Vim"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/#listItem","position":3,"name":"Vim","item":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#listItem","name":"Vim: delete lines that don&#8217;t match pattern"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#listItem","position":4,"name":"Vim: delete lines that don&#8217;t match pattern","previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/#listItem","name":"Vim"}}]},{"@type":"Person","@id":"https:\/\/www.nathankowald.com\/blog\/#person","name":"Nathan Kowald","image":{"@type":"ImageObject","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg","width":96,"height":96,"caption":"Nathan Kowald"}},{"@type":"Person","@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author","url":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/","name":"Nathan Kowald","image":{"@type":"ImageObject","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg","width":96,"height":96,"caption":"Nathan Kowald"}},{"@type":"WebPage","@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#webpage","url":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/","name":"Vim: delete lines that don\u2019t match pattern \u2014 Nathan's Blog","description":"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.nathankowald.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/#breadcrumblist"},"author":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"creator":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"datePublished":"2013-01-18T10:46:45+10:30","dateModified":"2016-11-13T17:54:42+10:30"},{"@type":"WebSite","@id":"https:\/\/www.nathankowald.com\/blog\/#website","url":"https:\/\/www.nathankowald.com\/blog\/","name":"Nathan's Blog","description":"Web development and useful information","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.nathankowald.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Nathan's Blog | Web development and useful information","og:type":"article","og:title":"Vim: delete lines that don\u2019t match pattern \u2014 Nathan's Blog","og:description":"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines","og:url":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/","article:published_time":"2013-01-18T10:46:45+00:00","article:modified_time":"2016-11-13T17:54:42+00:00","twitter:card":"summary","twitter:title":"Vim: delete lines that don\u2019t match pattern \u2014 Nathan's Blog","twitter:description":"Ex command :v to the rescue! :v\/pattern\/d Using :g! will give you the same result as using :v. :g finds lines that do match a pattern. I had a large list of locations. I wanted to keep only the locations containing hyphens and delete the rest so I used this: :v\/-\/d :v - find lines"},"aioseo_meta_data":{"post_id":"940","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-20 21:50:51","updated":"2025-09-13 06:09:41","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/\" title=\"Web Development\">Web Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/\" title=\"Vim\">Vim<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tVim: delete lines that don\u2019t match pattern\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.nathankowald.com\/blog"},{"label":"Web Development","link":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/"},{"label":"Vim","link":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/vim\/"},{"label":"Vim: delete lines that don&#8217;t match pattern","link":"https:\/\/www.nathankowald.com\/blog\/2013\/01\/vim-delete-lines-that-dont-match-pattern\/"}],"_links":{"self":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/comments?post=940"}],"version-history":[{"count":31,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/940\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/940\/revisions\/1785"}],"wp:attachment":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/categories?post=940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/tags?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}