Select when a shape needs inspection
The technique
v starts the selection and f. stretches it to the full stop. p puts your copy in its place.
Keys in this lesson
- v
- Select characters. Move to grow the selection.
- V
- Select whole lines.
Before this lesson: Operators and movement.
More about this lesson
Select text with v or V, adjust the selection, then choose what to do with it.
v selects characters and V selects whole lines. Move to grow or shrink the selection, then press d to delete it, y to copy it or c to change it. p puts what you copied in place of the selection, so you don't have to delete the old text first and keep your copy safe. Esc cancels, and gv selects the same text again. When you know the boundary, a text object is often clearer.
Example
Copy the new sentence with yf., then go to the old one. v then f. selects it up to its full stop, and p puts the copy in its place. V then j selects two whole lines in the same way.
Use Start over to try again.
Guides on this topic
Exercise 1 of 2
0keys
par 14Make the empty wishlist end the way the empty cart does. Replace Come back later! with Browse the new arrivals to get started.
Make it look like this
// English strings for the storefront. Keys are grouped by page. export const strings = { "cart.title": "Your cart", "cart.empty": "Your cart is empty. Browse the new arrivals to get started.", "cart.checkout": "Go to checkout", "wishlist.title": "Saved for later", "wishlist.empty": "Nothing saved yet. Browse the new arrivals to get started.", "wishlist.move": "Move to cart", "orders.title": "Your orders", "orders.empty": "You haven't ordered anything yet.", };