|
Well, assuming you already have a plugin or mapping that makes * search your visual selection, it's similar. You'd have to do *, then N to back to where you just were, then cgn, type your replacement, and then n., n., n., n (skip), n., etc. With my plugin that just becomes one mapping, type your replacement, ., ., n (skip), ., etc. It's just very smooth, which I like because I use this operation literally all the time. Hell, I'll even use it when changing a single variable, just to make sure there isn't another sneaky one in the file somewhere. |