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