How to treat a sunburn with home remedies like vinegar?

Not vinegar. Vinegar will make you smell like a salad, but won't do much of anything for your sunburn. Apply cool washcloths and take Ibuprofen to decrease the pain and inflammation. And please learn the lesson that mr. Sun is trying to teach you; enjoy his warmth and light, but respect his power.
Simple Care. Sunburn is response of the tissues to injury from solar radiation. It is simply inflammation which means increase blood flow to the area to promote healing. Do not use ice as this can injure already injured skin. Cool water soaks can help as can taking anti-inflammation medicines like Motrin or advil (ibuprofen). Avoid any further damage as this can cause scarring . Good skin cream applied daily/gently helps.