Copy and paste correctly when editing files with tramp.