Mildew and other fungals propagate by spreading of their spores. If there is mildew already on your boat, the mildew will continue. If you have a CLEAN boat, including 'clean' in all the hidden places such as behind 'boat liners', blind panels, under the sole, bilge, etc. there wont be many spores there able to propagate and spread to new areas.
Mildew spores dont readily grow on 'alkaline' surfaces; that's why your ancestors 'white-washed' just about 'everything'.
3M Mildew Block is a modern equivalent of 'white-wash'. So too is spraying on a heavily caustic detergent and simply let it dry ... but not on varnish or on painted surfaces or it will 'lift' the coating.
http://www.amazon.com/3M-Marine-Mil...540138&sr=1-1-catcorr&keywords=mildew+blocker
Mildew thrives on 'acidic' surfaces ... surfaces that are neutral to mildly acidic when wet.
The application of vinegar will sometimes generate a surface acidity greater than that on which mildew, etc. can start, thrive, or live. However, when that acidity dilutes itself over time that 'vinegared' surface may now be at the 'perfect' acidity to make mildew, etc. REALLY thrive.
There are some powerful off-gassing chemicals (available in those states where most 'consumer' chemicals are not banned) that can be added to a closed up boat or space that directly attack and destroy mold/mildew and their spores. Many of these are available in 'boat chandleries' in those states that allow. ParaFormaldehyde and equivalent crystaline form chemicals .... Brand Name is "MildewGaz". Dont breathe these (off) gases as they can also be very dangerous to lung tissues; always let any closed space where these 'crystals' are placed fully 'air-out' before entering.
Note on cleaning molds/mildews -- NEVER clean mold or mildew when its DRY as this will release the spores into the air and many of these are very dangerous to lung, etc. tissue. Always 'wet' (spritz) and let soak molds/mildews/fungals before any attempt at cleaning to prevent the spreading of the spores. Use CAUSTIC detergents which will dissolve mold/mildews and their spores - spritz on and let soak/dissolve, etc.
ALWAYS use a 'mask' or respirator when cleaning spores!!!!