- Is possible specify who can send bitcoins to me?
- Called of God or called of man?
- How would a Reformed theologian distinguish his or her view of atonement?
- Evidence that Peter alone was made a Bishop by Christ?
- How do you use the future of the verb devoir when using another verb aswell?
- clarify diffence between present, perfect, imperfect and pluperfect in French
- AR filter length
- (Faster) RCNN dataset physical markers
- how to create a DFT with scalloping/spectal leakage
- correctnes of multi prime RSA algorithm
- Can PRF F with generator P be secure?
- What to expect about the mobile phone usage during a flight to China and based on the CAAC regulations
- At what time of day does US visa expire?
- Travel Issues to Turkey
- Can a US green card holder transiting through China leave the airport? Recommendation for sight-seeing in Shanghai?
- Amtrak Seating NY to DC
- The soul as the form of the body – considering massive changes of the body
- Why can't uniformity of nature (in principle) be proven deductively?
- Need help to understand Kierkegaard's “An Ecstatic Discourse”
- Understanding Herr and its various meanings
Is there a better method for find and replace in Vim?
Edit: I accidentally asked this over on SO first. Moving here...
I'd like to optimize my "find and replace" workflow in Vim. It's something I do often, as I'm sure most of you do too. Usually something along the lines of -- copy a block and change the name of a variable in a few places. I know, I know, that probably triggers your "why are you copying and pasting code" reflex, but let's not go down that road... There are plenty of valid use cases :)
I'm well aware of the search and replace commands: :s or :%s but I don't like them. It forces me to type out both the full variable name I'm searching for and what I'm changing it to. Maybe there is a better way fix the the amount of typing with :%s? I often use long descriptive variable names, so that is really a deal breaker for me. I also don't like how typing out a variable name from scratch is typo prone and can consume time and brainpower hunting down typos. I much prefer typing it once, and then copying and pasting to