虽然我从未尝试过,但这可能适用于autocmd:
原文链接:https://www.f2er.com/bash/383610.htmlautocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en_au autocmd BufNewFile,BufRead *.md setlocal spell spelllang=en_au