in ~/.vimrc I have
au BufNewFile,BufRead *.tex,*.md,*.markdown set spell
but when I have open a this fi开发者_JAVA百科letype file and after I open other file, example :
:sp ~/.vimrc
this get spell highlight.
Use :setlocal spell
(or :setl spell
, for short) to enable spelling locally
in the current window.
精彩评论