Start with one area of the boat and tackle the rub rail in small sections at a time.
Spray a boat cleaner solution or metal polish onto the surface of the rub rail, or apply some to a damp sponge or cloth.
Wipe the rub rails with the cloth until the area is clean and free of stains, grease, grime or any other debris that may have accumulated during the course of your sailing.
Brush the vinyl with a stiff bristle brush to remove grimy debris. Dip a sponge into a bucket of soapy water and wash the area, rinsing it thoroughly. Wait for the area to dry.
Repeat the process for the rub rails on the entire boat.