Reshape without retyping
The technique
J puts one space between the lines. gU works with any motion or text object.
Keys in this lesson
- J
- Join the next line to this one.
- >>
- Indent the line.
- gUiw
- Make the word upper case.
Before this lesson: Operators and counts.
More about this lesson
Join lines, indent them or make text upper case without touching the lines around them.
J joins the next line onto this one, usually with a space between them. gU takes a motion or text object and makes that text upper case. >> moves a line right, and a count moves several lines. Indenting only changes the layout here, so check the result against the target.
Example
J turns “Read the” and “guide.” into “Read the guide.” Then gUiw on guide changes just that word to GUIDE.
Use Start over to try again.
Guides on this topic
Exercise 1 of 3
0keys
par 1This call fits on one line. Join the two lines.