Continuous insomnia was more common in patients with Caspr2-Ab diseases than patients with LGI1-Ab encephalitis. Here, CNTNAP2 is linked to viral encephalitis.