How can I disable spell check for files likes yaml, json?

1 Answer 1


You can add to your init.vim or .vimrc

autocmd FileType yaml,json setlocal nospell

Also, if you open a file and want to to disable the spell check:

:set nospell
  • Or even better, use your after/ftplugin directory.
    – r_31415
    Sep 22, 2022 at 2:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.