From 046bca8d5985b67b127f7e45f15ebed81d8fd25b Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 11 Nov 2018 02:52:51 +0100 Subject: [PATCH] Add spell check to vim latex --- .config/vim/ftplugin/tex.vim | 9 ++++++++- packages | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/vim/ftplugin/tex.vim b/.config/vim/ftplugin/tex.vim index c5a4077..f5f3bc0 100644 --- a/.config/vim/ftplugin/tex.vim +++ b/.config/vim/ftplugin/tex.vim @@ -4,7 +4,7 @@ setlocal colorcolumn=81 setlocal textwidth=80 " Document structuring -nnoremap ;be i\begin{(<>)}\end{(<>)}kk^ +nnoremap ;be i\begin{(<>)}\end{(<>)}kk^ nnoremap ;s i\section{}(<>)k$i " Text formatting @@ -15,3 +15,10 @@ inoremap ;e \emph{}(<>)T{i " Next section noremap .. /(<>)"_c4l + +" Enable/disable spell check +noremap :setlocal spell spelllang=en_us,nl +noremap :setlocal nospell + +" Start spell check when vim is run +autocmd VimEnter * call feedkeys("\") diff --git a/packages b/packages index a72e0f6..8c88589 100644 --- a/packages +++ b/packages @@ -114,6 +114,7 @@ ttf-dejavu-sans-mono-powerline-git tumbler unrar unzip +vim-spell-nl wmctrl wpa_actiond wpa_supplicant