You would benefit a lot from learning regular expressions. If you use vim, then it suffices to type * when the cursor is over an i variable to find all occurrences of i as a word (so excluding if etc.).
Many IDEs go one step farther and allow searching for just the current variable as distinct from other variables & functions of the same name.
Incidentally, I hope that the original poster is joking (as the ;-) suggests) in the suggestion to use a shared variable for all temporaries. Such sharing makes it harder to modify one use of the variable because one needs to check whether subsequent code is using the resulting value.