Wrap vim autocmd inside augroups

This commit is contained in:
Riyyi
2018-11-11 13:26:54 +01:00
parent 5135e9f890
commit fd1d4b4960
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -21,4 +21,6 @@ noremap <F7> <Esc>:setlocal spell spelllang=en_us,nl<CR>
noremap <F8> <Esc>:setlocal nospell<CR>
" Start spell check when vim is run
autocmd VimEnter * call feedkeys("\<F7>")
augroup SpellCheck
autocmd! VimEnter * call feedkeys("\<F7>")
augroup END