I want spell checking to be included in vim when editing .txt or .md files. I added
setlocal spell spelllang=en_au
in .vimrc, but that checks spelling for everything.
This can be done using autocmd , although I have never tried:
autocmd
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en_au autocmd BufNewFile,BufRead *.md setlocal spell spelllang=en_au
Well, try enabling spell checking right in vim and not ~ / .vimrc
: set spell
Does he work?
spcific spellchecking language may not work in some cases.
This will be what you need in _vimrc.
set spell spelllang=en_us
Source: https://habr.com/ru/post/896024/More articles:In Scala, can internal methods be overwritten in subclasses? - scalaAdding an offset to a pointer - c ++Backup database uses crontab with date function - linuxjQuery: get source selector - javascriptHow to avoid Xcode debugger for entering std system headers? - c ++Postal pearls. Extract recipient name and address as separate values - ruby | fooobar.comcompilation error while trying to inherit from std :: runtime_error - c ++Can a Scala type parameter reference itself be used when using a base class as a parameter? - genericsGeneral function of a higher order - genericsHow to pass null value using ajax in PHP? - ajaxAll Articles