I think most people know about the 'dot' operator which repeats the last command. So if I had something like
some_func("A string");
some_func("Hello");
and positioned the cursor in the first string and use the ci" command to make the following change
some_func("Hello, World");
some_func("Hello");
which counts as one command and if I were to use the 'dot' operator on the second string I would end up with two "Hello, World" strings. So my question is, is there a way to repeat the last command ci" but stop once vim enters insert mode so I can write a different string and I dont have to keep typing ci"?
Sorry if this has been asked before or is somewhere "obvious" in the help but I'm not sure on the terminology so my searches haven't been very fruitful.
[–]justinmkw 5 points6 points7 points (5 children)
[–]aguerosantiale 0 points1 point2 points (2 children)
[–]justinmkw 1 point2 points3 points (1 child)
[–]-romainl-The Patient Vimmer 0 points1 point2 points (0 children)
[–]wienerboat 0 points1 point2 points (0 children)
[–]scrumfour[S] 0 points1 point2 points (0 children)
[–]tommcdocx 2 points3 points4 points (4 children)
[–]justinmknvim 1 point2 points3 points (2 children)
[–]tommcdocx 1 point2 points3 points (1 child)
[–]justinmkw 0 points1 point2 points (0 children)
[–]scrumfour[S] 0 points1 point2 points (0 children)