For the purposes of this title, the term, residence, means the place in which a person is domiciled as shown by an actual fixed permanent dwelling, establishment, or any other abode to which the person returns after a period of absence.
A person who leaves the residence and goes into another county of this state or another state or territory for a temporary purpose has not changed residence.
A person is considered to have gained residence in any county or municipality of this state in which the person actually lives, if the person has no present intention of leaving.
A person retains residence in this state until another residence has been gained. If a person moves from this state to another state or territory with the intention of making it the person's permanent home, the person loses residence in this state.
SDCL 12-1-4