{"schemaVersion":1,"contentVersion":"3.4.0","id":"boundary.1","languages":{"javascript":{"id":"boundary.1","title":"Edit a whole word","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h3>Change a word</h3><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h3>Delete a word and its space</h3><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p>","teaches":["textobject:iw","textobject:aw"],"introduces":["h","j","k","l","0","G","count","c","d","textobject"],"constraints":[],"drills":[{"task":"This setting is called <code>theme</code> now. Rename <code>color</code> to <code>theme</code>.","hint":"Change the whole word from where the cursor is.","mode":"jsx","start":"// Settings the storefront reads when it starts.\nexport const settings = {\n  currency: \"EUR\",\n  pageSize: 24,\n  color: \"dark\",\n  showReviews: true,\n  supportEmail: \"help@northwind.shop\",\n};","startCursor":{"line":4,"ch":4},"paths":[{"keys":["c","i","w","theme","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"// Settings the storefront reads when it starts.\nexport const settings = {\n  currency: \"EUR\",\n  pageSize: 24,\n  theme: \"dark\",\n  showReviews: true,\n  supportEmail: \"help@northwind.shop\",\n};","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#0","canonicalFingerprint":"h7hkx5"},{"task":"Tax should always round up. Change <code>Math.round</code> to <code>Math.ceil</code>.","hint":"Go down to the tax line. Your cursor will already be inside the word.","mode":"jsx","start":"import { formatPrice, sumBy } from \"./money.js\";\n\nconst TAX_RATE = 0.2;\n\nexport function cartSummary(lines) {\n  const subtotal = sumBy(lines, (line) => line.price * line.qty);\n  const shipping = subtotal >= 50 ? 0 : 4.95;\n  const tax = Math.round(subtotal * TAX_RATE * 100) / 100;\n  return formatPrice(subtotal + shipping + tax);\n}","startCursor":{"line":5,"ch":21},"paths":[{"keys":["2","j","c","i","w","ceil","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"import { formatPrice, sumBy } from \"./money.js\";\n\nconst TAX_RATE = 0.2;\n\nexport function cartSummary(lines) {\n  const subtotal = sumBy(lines, (line) => line.price * line.qty);\n  const shipping = subtotal >= 50 ? 0 : 4.95;\n  const tax = Math.ceil(subtotal * TAX_RATE * 100) / 100;\n  return formatPrice(subtotal + shipping + tax);\n}","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#1","canonicalFingerprint":"4qpcck"},{"task":"A line break hides a doubled <code>the</code>. Remove the one at the end of the line.","hint":"At the end of a line, daw takes the word and the space before it.","mode":"jsx","start":"// Sent when an order ships before its invoice is ready.\nexport const invoiceLater = (name) => `Hi ${name},\n\nYour order is on its way, and\nwe'll send you the\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team\n`;","startCursor":{"line":4,"ch":0},"paths":[{"keys":["$","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"With nothing after the word, aw takes the space before it."}],"target":"// Sent when an order ships before its invoice is ready.\nexport const invoiceLater = (name) => `Hi ${name},\n\nYour order is on its way, and\nwe'll send you\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team\n`;","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#2","canonicalFingerprint":"14e7wcc"},{"task":"<code>ordersPath</code> doesn't wait for anything, and the URL comes out as <code>[object Promise]</code>. Remove its <code>async</code>.","hint":"Delete the word and the space after it.","mode":"jsx","start":"const BASE_URL = \"https://api.northwind.shop/v1\";\n\nasync function ordersPath(customerId) {\n  return `/customers/${customerId}/orders?sort=newest`;\n}\n\nexport async function recentOrders(customerId) {\n  const response = await fetch(BASE_URL + ordersPath(customerId));\n  if (!response.ok) throw new Error(`HTTP ${response.status}`);\n  return response.json();\n}","startCursor":{"line":3,"ch":2},"paths":[{"keys":["k","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"aw takes the word and one space next to it, so no double space is left."}],"target":"const BASE_URL = \"https://api.northwind.shop/v1\";\n\nfunction ordersPath(customerId) {\n  return `/customers/${customerId}/orders?sort=newest`;\n}\n\nexport async function recentOrders(customerId) {\n  const response = await fetch(BASE_URL + ordersPath(customerId));\n  if (!response.ok) throw new Error(`HTTP ${response.status}`);\n  return response.json();\n}","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#3","canonicalFingerprint":"py0crn"},{"task":"The width is settled. Rename <code>THUMB</code> to <code>GRID</code>, and remove the <code>TODO</code> from the comment above it.","hint":"One change needs the whole word, the other the word and its space.","mode":"jsx","start":"// Photo widths for the product pages, in pixels.\nexport const FORMATS = [\"avif\", \"webp\", \"jpeg\"];\n\n// Grid photo width. TODO\nexport const THUMB = 320;\n\n// Width of the photo on a product's own page.\nexport const LARGE = 1200;","startCursor":{"line":7,"ch":14},"paths":[{"keys":["3","k","c","i","w","GRID","<Esc>","k","$","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:aw"],"note":"iw takes the whole word, wherever the cursor is in it. With nothing after the word, aw takes the space before it."}],"target":"// Photo widths for the product pages, in pixels.\nexport const FORMATS = [\"avif\", \"webp\", \"jpeg\"];\n\n// Grid photo width.\nexport const GRID = 320;\n\n// Width of the photo on a product's own page.\nexport const LARGE = 1200;","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#4","canonicalFingerprint":"mpg223"},{"task":"Rename <code>KEEP</code> to <code>TTL</code>, and end its line with a <code>// seconds</code> comment.","hint":"Change the name first, then add the comment at the end of the line.","mode":"jsx","start":"import { createClient } from \"redis\";\n\nexport const redis = createClient({ url: process.env.REDIS_URL });\n\n// How long a product page stays in the cache.\nexport const KEEP = 300;\n\nexport function pageKey(slug) {\n  return `page:${slug}`;\n}","startCursor":{"line":4,"ch":14},"paths":[{"keys":["j","c","i","w","TTL","<Esc>","A"," // seconds","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","door-A"],"note":"iw takes the whole word, wherever the cursor is in it. A adds to the end of the line."}],"target":"import { createClient } from \"redis\";\n\nexport const redis = createClient({ url: process.env.REDIS_URL });\n\n// How long a product page stays in the cache.\nexport const TTL = 300; // seconds\n\nexport function pageKey(slug) {\n  return `page:${slug}`;\n}","language":"javascript","evidence":"guided","canonicalKey":"boundary.1#5","canonicalFingerprint":"5nt2wh"}]},"python":{"id":"boundary.1","title":"Edit a whole word","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h3>Change a word</h3><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h3>Delete a word and its space</h3><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p>","teaches":["textobject:iw","textobject:aw"],"introduces":["h","j","k","l","0","G","count","c","d","textobject"],"constraints":[],"drills":[{"task":"This setting is called <code>THEME</code> now. Rename <code>COLOR</code> to <code>THEME</code>.","hint":"Change the whole word from where the cursor is.","mode":"python","start":"# Settings the storefront reads when it starts.\nCURRENCY = \"EUR\"\nPAGE_SIZE = 24\nCOLOR = \"dark\"\nSHOW_REVIEWS = True\nSUPPORT_EMAIL = \"help@northwind.shop\"","startCursor":{"line":3,"ch":2},"paths":[{"keys":["c","i","w","THEME","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"# Settings the storefront reads when it starts.\nCURRENCY = \"EUR\"\nPAGE_SIZE = 24\nTHEME = \"dark\"\nSHOW_REVIEWS = True\nSUPPORT_EMAIL = \"help@northwind.shop\"","language":"python","evidence":"guided","canonicalKey":"boundary.1#0","canonicalFingerprint":"h7hkx5"},{"task":"Tax should always round up. Change <code>math.floor</code> to <code>math.ceil</code>.","hint":"Go down to the tax line. Your cursor will already be inside the word.","mode":"python","start":"import math\n\nTAX_RATE = 0.2\n\n\ndef cart_summary(lines):\n    subtotal = sum(line.price * line.qty for line in lines)\n    shipping = 0 if subtotal >= 50 else 4.95\n    tax = math.floor(subtotal * TAX_RATE * 100) / 100\n    return subtotal + shipping + tax","startCursor":{"line":6,"ch":17},"paths":[{"keys":["2","j","c","i","w","ceil","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"import math\n\nTAX_RATE = 0.2\n\n\ndef cart_summary(lines):\n    subtotal = sum(line.price * line.qty for line in lines)\n    shipping = 0 if subtotal >= 50 else 4.95\n    tax = math.ceil(subtotal * TAX_RATE * 100) / 100\n    return subtotal + shipping + tax","language":"python","evidence":"guided","canonicalKey":"boundary.1#1","canonicalFingerprint":"4qpcck"},{"task":"A line break hides a doubled <code>the</code>. Remove the one at the end of the line.","hint":"At the end of a line, daw takes the word and the space before it.","mode":"python","start":"# Sent when an order ships before its invoice is ready.\nINVOICE_LATER = \"\"\"\\\nHi {name},\n\nYour order is on its way, and\nwe'll send you the\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team\n\"\"\"","startCursor":{"line":5,"ch":0},"paths":[{"keys":["$","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"With nothing after the word, aw takes the space before it."}],"target":"# Sent when an order ships before its invoice is ready.\nINVOICE_LATER = \"\"\"\\\nHi {name},\n\nYour order is on its way, and\nwe'll send you\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team\n\"\"\"","language":"python","evidence":"guided","canonicalKey":"boundary.1#2","canonicalFingerprint":"14e7wcc"},{"task":"<code>orders_path</code> doesn't await anything, and callers get a coroutine instead of a path. Remove its <code>async</code>.","hint":"Delete the word and the space after it.","mode":"python","start":"import httpx\n\nBASE_URL = \"https://api.northwind.shop/v1\"\n\n\nasync def orders_path(customer_id):\n    return f\"/customers/{customer_id}/orders?sort=newest\"\n\n\nasync def recent_orders(customer_id):\n    async with httpx.AsyncClient() as client:\n        response = await client.get(BASE_URL + orders_path(customer_id))\n        response.raise_for_status()\n        return response.json()","startCursor":{"line":6,"ch":4},"paths":[{"keys":["k","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"aw takes the word and one space next to it, so no double space is left."}],"target":"import httpx\n\nBASE_URL = \"https://api.northwind.shop/v1\"\n\n\ndef orders_path(customer_id):\n    return f\"/customers/{customer_id}/orders?sort=newest\"\n\n\nasync def recent_orders(customer_id):\n    async with httpx.AsyncClient() as client:\n        response = await client.get(BASE_URL + orders_path(customer_id))\n        response.raise_for_status()\n        return response.json()","language":"python","evidence":"guided","canonicalKey":"boundary.1#3","canonicalFingerprint":"py0crn"},{"task":"The width is settled. Rename <code>\"thumb\"</code> to <code>\"grid\"</code>, and remove the <code>TODO</code> from the comment above it.","hint":"One change needs the whole word, the other the word and its space.","mode":"python","start":"# Image settings for the product pages.\nIMAGES = {\n    \"formats\": [\"avif\", \"webp\", \"jpeg\"],\n    # Grid photo width. TODO\n    \"thumb\": 320,\n    # Width of the photo on a product's own page.\n    \"large\": 1200,\n}","startCursor":{"line":5,"ch":7},"paths":[{"keys":["k","c","i","w","grid","<Esc>","k","$","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:aw"],"note":"iw takes the whole word, wherever the cursor is in it. With nothing after the word, aw takes the space before it."}],"target":"# Image settings for the product pages.\nIMAGES = {\n    \"formats\": [\"avif\", \"webp\", \"jpeg\"],\n    # Grid photo width.\n    \"grid\": 320,\n    # Width of the photo on a product's own page.\n    \"large\": 1200,\n}","language":"python","evidence":"guided","canonicalKey":"boundary.1#4","canonicalFingerprint":"mpg223"},{"task":"Rename <code>\"keep\"</code> to <code>\"ttl\"</code>, and end its line with a <code># seconds</code> comment.","hint":"Change the name first, then add the comment at the end of the line.","mode":"python","start":"# Cache settings for the product pages.\nCACHE = {\n    \"backend\": \"redis\",\n    \"url\": \"redis://localhost:6379/2\",\n    # How long a product page stays in the cache.\n    \"keep\": 300,\n    \"prefix\": \"page:\",\n}","startCursor":{"line":4,"ch":7},"paths":[{"keys":["j","c","i","w","ttl","<Esc>","A","  # seconds","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","door-A"],"note":"iw takes the whole word, wherever the cursor is in it. A adds to the end of the line."}],"target":"# Cache settings for the product pages.\nCACHE = {\n    \"backend\": \"redis\",\n    \"url\": \"redis://localhost:6379/2\",\n    # How long a product page stays in the cache.\n    \"ttl\": 300,  # seconds\n    \"prefix\": \"page:\",\n}","language":"python","evidence":"guided","canonicalKey":"boundary.1#5","canonicalFingerprint":"5nt2wh"}]},"text":{"id":"boundary.1","title":"Edit a whole word","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h3>Change a word</h3><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h3>Delete a word and its space</h3><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p>","teaches":["textobject:iw","textobject:aw"],"introduces":["h","j","k","l","0","G","count","c","d","textobject"],"constraints":[],"drills":[{"task":"This setting is called <code>theme</code> now. Rename <code>color</code> to <code>theme</code>.","hint":"Change the whole word from where the cursor is.","mode":"text/plain","start":"; Settings the storefront reads when it starts.\n[shop]\ncurrency = EUR\npage_size = 24\ncolor = dark\nshow_reviews = yes","startCursor":{"line":4,"ch":2},"paths":[{"keys":["c","i","w","theme","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"; Settings the storefront reads when it starts.\n[shop]\ncurrency = EUR\npage_size = 24\ntheme = dark\nshow_reviews = yes","language":"text","evidence":"guided","canonicalKey":"boundary.1#0","canonicalFingerprint":"h7hkx5"},{"task":"Refunds take longer with the new bank. Change <code>five</code> to <code>ten</code>.","hint":"Go down to the refunds line. Your cursor will already be inside the word.","mode":"text/plain","start":"Shipping and returns\n\nOrders placed before 2 pm ship the same day.\nDelivery in the UK takes two to three working days.\nRefunds reach your card within five working days.\nYou can return anything unused within 30 days.","startCursor":{"line":2,"ch":32},"paths":[{"keys":["2","j","c","i","w","ten","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw"],"note":"iw takes the whole word, wherever the cursor is in it."}],"target":"Shipping and returns\n\nOrders placed before 2 pm ship the same day.\nDelivery in the UK takes two to three working days.\nRefunds reach your card within ten working days.\nYou can return anything unused within 30 days.","language":"text","evidence":"guided","canonicalKey":"boundary.1#1","canonicalFingerprint":"4qpcck"},{"task":"A line break hides a doubled <code>the</code>. Remove the one at the end of the line.","hint":"At the end of a line, daw takes the word and the space before it.","mode":"text/plain","start":"Subject: Your invoice for order 4417\n\nHi Dana,\n\nYour order is on its way, and\nwe'll send you the\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team","startCursor":{"line":5,"ch":0},"paths":[{"keys":["$","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"With nothing after the word, aw takes the space before it."}],"target":"Subject: Your invoice for order 4417\n\nHi Dana,\n\nYour order is on its way, and\nwe'll send you\nthe invoice by email once\nyour payment has cleared.\n\nThanks for shopping with us,\nThe Northwind team","language":"text","evidence":"guided","canonicalKey":"boundary.1#2","canonicalFingerprint":"14e7wcc"},{"task":"Gift wrapping is finished. Remove <code>WIP</code> from the start of its line.","hint":"Delete the word and the space after it.","mode":"text/plain","start":"Release notes, week 46\n\nWIP Gift wrapping at checkout, for 3.50 an order.\nSaved addresses on the account page.\nFaster search on the orders page.\nFixed: duplicate emails after a payment retry.","startCursor":{"line":3,"ch":1},"paths":[{"keys":["k","d","a","w"],"tier":"idiomatic","technique":"textobject:aw","core":["textobject:aw"],"note":"aw takes the word and one space next to it, so no double space is left."}],"target":"Release notes, week 46\n\nGift wrapping at checkout, for 3.50 an order.\nSaved addresses on the account page.\nFaster search on the orders page.\nFixed: duplicate emails after a payment retry.","language":"text","evidence":"guided","canonicalKey":"boundary.1#3","canonicalFingerprint":"py0crn"},{"task":"The width is settled. Rename <code>THUMB</code> to <code>GRID</code>, and remove the <code>TODO</code> from the comment above it.","hint":"One change needs the whole word, the other the word and its space.","mode":"text/plain","start":"# Photo widths for the product pages, in pixels.\nexport FORMATS=avif,webp,jpeg\n# Grid photo width. TODO\nexport THUMB=320\n# Width of the photo on a product's own page.\nexport LARGE=1200","startCursor":{"line":4,"ch":8},"paths":[{"keys":["k","c","i","w","GRID","<Esc>","k","$","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:aw"],"note":"iw takes the whole word, wherever the cursor is in it. With nothing after the word, aw takes the space before it."}],"target":"# Photo widths for the product pages, in pixels.\nexport FORMATS=avif,webp,jpeg\n# Grid photo width.\nexport GRID=320\n# Width of the photo on a product's own page.\nexport LARGE=1200","language":"text","evidence":"guided","canonicalKey":"boundary.1#4","canonicalFingerprint":"mpg223"},{"task":"Priya has moved teams. Make the owner <code>@kemal</code>, and end that line with <code>(from March)</code>.","hint":"Change the name first, then add to the end of the line.","mode":"text/plain","start":"# Orders service: on-call notes\n\nEscalation: page the platform team after 15 minutes.\nOwner: @priya on Slack\nBackup: @tomasz on Slack\nDashboard: grafana.northwind.internal/d/orders","startCursor":{"line":2,"ch":9},"paths":[{"keys":["j","c","i","w","kemal","<Esc>","A"," (from March)","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","door-A"],"note":"iw takes the whole word, wherever the cursor is in it. A adds to the end of the line."}],"target":"# Orders service: on-call notes\n\nEscalation: page the platform team after 15 minutes.\nOwner: @kemal on Slack (from March)\nBackup: @tomasz on Slack\nDashboard: grafana.northwind.internal/d/orders","language":"text","evidence":"guided","canonicalKey":"boundary.1#5","canonicalFingerprint":"5nt2wh"}]}},"concepts":{"javascript":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h2 class=\"prose-subhead\">Change a word</h2><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h2 class=\"prose-subhead\">Delete a word and its space</h2><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p></div></details>"},"python":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h2 class=\"prose-subhead\">Change a word</h2><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h2 class=\"prose-subhead\">Delete a word and its space</h2><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p></div></details>"},"text":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change or delete a whole word from anywhere inside it.</p><p><kbd>c</kbd> changes some text and puts you in Insert mode. <kbd>d</kbd> deletes it and keeps you in Normal mode. <kbd>iw</kbd> means the whole word, wherever your cursor is in it. Letters, digits and underscores all count as part of a word. <kbd>aw</kbd> also takes one space next to the word.</p><h2 class=\"prose-subhead\">Change a word</h2><pre class=\"lesson-example\">tax = Math.round(total) → tax = Math.ceil(total)</pre><p>From anywhere in “round”, <kbd>ciw</kbd>, then <kbd>ceil</kbd>, then <kbd>Esc</kbd> changes the whole word. <kbd>cw</kbd> from the middle would leave the start of the word behind. When you move down with <kbd>j</kbd>, you often land in the middle of a word, and that's where <kbd>ciw</kbd> helps.</p><h2 class=\"prose-subhead\">Delete a word and its space</h2><pre class=\"lesson-example\">send the the invoice → send the invoice</pre><p>From anywhere in either “the”, <kbd>daw</kbd> removes the word and the space after it. At the end of a line or before punctuation, where there's no space after the word, it takes the space before it.</p><p><kbd>diw</kbd> deletes just the word and leaves both spaces. You'll mostly want <kbd>ciw</kbd> to replace a word or <kbd>daw</kbd> to remove one.</p></div></details>"}}}