Add spell check to vim latex

This commit is contained in:
Riyyi
2018-11-11 02:52:51 +01:00
parent f61200eed7
commit 046bca8d59
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -4,7 +4,7 @@ setlocal colorcolumn=81
setlocal textwidth=80
" Document structuring
nnoremap ;be i\begin{(<>)}<Return><Tab><Return>\end{(<>)}<Esc>kk^
nnoremap ;be i\begin{(<>)}<CR><Tab><CR>\end{(<>)}<Esc>kk^
nnoremap ;s i\section{}<Return>(<>)<Esc>k$i
" Text formatting
@@ -15,3 +15,10 @@ inoremap ;e \emph{}(<>)<Esc>T{i
" Next section
noremap <silent> .. <Esc>/(<>)<Enter>"_c4l
" Enable/disable spell check
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>")