augroup spell_settings au! " set en_us as default language (unknown extension): au BufEnter * setlocal spell spelllang=en_us " set en_us for en files specifically: au BufEnter *.en setlocal spell spelllang=en_us " to add multiple commands just append: au BufEnter *.en setlocal syntax on augroup END
source share