A man will spend the next two decades behind bars after pleading guilty to a deadly shooting in 2023 in Winston-Salem.