General Discussion Harnessing the Power of Vim

Daaimah Brown
Daaimah Brown
2,187 Points

Regarding 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
Steven Parker
160,137 Points

He types :point_right: 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
Daaimah Brown
2,187 Points

Gotcha, 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.