Cut a groove in the crack using a utility knife. Make the crack even on each side.
Vacuum in between the cracks to remove any debris.
Hammer a nail into the wall on each side of the crack into the wood behind. This holds the drywall in place.
Spread joint compound over the crack using a putty knife. Feather out the putty away from the crack to make the patch as smooth as possible.
Place paper drywall tape over the wet putty and push down. Wait 24 hours for the putty to dry on the tape.
Apply a second coat of drywall compound over the tape, feathering out. Allow the compound to dry.
Apply a third coat of putty and allow to dry.
Sand the wall smooth using a large, 80-grit sanding block. Clean the area and paint.