Browse Source

Add spell check to vim latex

master
Riyyi 6 years ago
parent
commit
046bca8d59
  1. 9
      .config/vim/ftplugin/tex.vim
  2. 1
      packages

9
.config/vim/ftplugin/tex.vim

@ -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>")

1
packages

@ -114,6 +114,7 @@ ttf-dejavu-sans-mono-powerline-git
tumbler
unrar
unzip
vim-spell-nl
wmctrl
wpa_actiond
wpa_supplicant

Loading…
Cancel
Save