Installing pvc molding
The simplest way is a dab of painter's caulk right from the tube. As it dries, it may dip a bit, but you can hit it again the next day. The white version should pretty much disappear against the white of pvc.

I might glue the butt joint to keep it tight, but once again, a smear of caulk can mask a bit of a gap.