If you're going to put in a tankless water heater, mount it as close to your shower as you can. I have a Sunnybrook trailer where the previous owner did a straight replacement, putting a tankless Atwood in the same location as the original water heater with about 15 ft. of pipe between there and the showerhead. The time delay between hot water exiting the heater and when it reaches the showerhead makes adjusting the shower temperature a royal pain.
The problem is a tankless heater isn't constant temperature - the outlet temperature changes depending on how much water is flowing through the heater.
With the heater located some distance from the shower, you turn on the faucet and wait a couple of seconds for the water heater to fire up, meanwhile you're getting cold water from the hot water tap.
When hot water arrives at the tap, you can add cold water to get the temperature you want.
With a conventional tank type heater, this would be the end of the process. But adding cold water at the showerhead reduces the flow through the tankless heater, increasing it's output temperature. Several seconds later, when the hotter water reaches the showerhead, you either get scalded or you repeat the adjustment process. Usually you have to do this a couple of times as the water heater's temperature increases with each adjustment.
Hopefully you won't have to add so much cold water that you hit the heater's minimum flow cutoff, if you do the heater will shut down and several seconds later you'll be blasted by cold water. If this happens, you have to turn off the cold water faucet, turn the hot water faucet all the way on, wait for the heater to restart and for the hot water to reach the shower, then repeat the process.