summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Iannetta <paul.iannetta@inria.fr>2019-10-31 17:34:10 +0100
committerPaul Iannetta <paul.iannetta@inria.fr>2019-10-31 17:34:10 +0100
commitf26b3e1cacdffd2e3fd4fd13f6518f2719c1f170 (patch)
treefb4f7fd98835d6e78b4f335433666930cb4b71c7
parent426ec018dd66fd0479f77b84ced73b9d41bcb133 (diff)
vim: tex: add a switch for Goyo + spell
-rw-r--r--.config/nvim/after/ftplugin/tex.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/tex.vim b/.config/nvim/after/ftplugin/tex.vim
index 7639c7e..9bd25f8 100644
--- a/.config/nvim/after/ftplugin/tex.vim
+++ b/.config/nvim/after/ftplugin/tex.vim
@@ -7,3 +7,10 @@ autocmd! numbertoggle
nnoremap <expr> j v:count ? (v:count > 5 ? "m'" . v:count : '') . 'j' : 'gj'
nnoremap <expr> k v:count ? (v:count > 5 ? "m'" . v:count : '') . 'k' : 'gk'
nnoremap <F8> :Make!<cr>
+
+nnoremap yog :Goyo<cr>
+
+autocmd! User GoyoEnter set spell
+autocmd! User GoyoLeave set nospell
+
+set spelllang=en