- Strange object on 737-800 exterior?
- Requirements for complex and high-performance endorsement?
- How come nobody survived Air Moorea 1121, yet other people have survived crashes from altitudes more than 90x higher?
- Why is the Eurofighters nose gear door shorter than the bay?
- What does “v'ha” mean?
- “New TOR Circuit for this Site” changes all tabs IP addreses
- How to completly remove influence of bone to mesh
- Motion Blur at different frames
- Trackpad with Surface Book cannot navigate 3D View
- Tracking scene moves markers from points in 3D view
- Smooth transition between distorted and undistorted result of Movie Distortion node
- How do you access the ruler?
- Object not showing up in full render
- How to say “pay exact amount of money”
- How to use the word 'suitable' properly?
- why the answer in this question is “(A)”?
- What's the difference between drug and medication?
- Which auxiliary verb or copular to refer to uncountable nouns?
- Is there difference between bedding, bedclothes and linen or are consider synonym?
- What would you call someone who sneaks into and stays in places where they have to be signed up, e.g. classes/country clubs
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