Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaaimah Brown
2,428 PointsRegarding the "repeating dot action" after c + i, can you please clarify how the repetition is done? (~21:31)
I understood the video to instruct us that after doing " c " + " i " + " ' " + " foo ", we should press " . ". I have even tried " . " + " --> ". However, I am not able to get the repeating 'foo' written. Any direction or clarification in understanding, is greatly appreciated.
1 Answer
Steven Parker
231,248 PointsHe types ci'foo
and then ESC (escape). That stands for "change everything inside the surrounding single quotes (apostrophes) to foo".
Then he moves the cursor between another pair of single quotes and types a dot (period), which repeats the previous sequence. Note that this particular sequence will only be effective if you move between a pair of single quotes before pressing the dot again.
Daaimah Brown
2,428 PointsDaaimah Brown
2,428 PointsGotcha, I understand the explanation you've provided, that helps to clarify direction. However, I am still getting dots typed in between the single quotations instead of the repetition.