Let us say we have the following for loop in Vim:for(int i = 0; i < len; ++i);and I want to change the variable i to j.I have to do it manually for each i. Is there a way in Vim so that when I change one i, and it also changes the rest?I use ultisnips and when I create a for loop for example, I am able to change all i's at the same time, but I would also like to do that even once I'm done with the snippet. Is that possible?Edit:I've just realized what I should have asked instead for was a way to refactor the code like you can do in an IDE, but from what I can see this is not possible with vim, nonetheless, I appreciate all the useful tips for doing so in vim.
Changing Multiple Instances of a Local Variable at the Same Time
substitute