From f26b3e1cacdffd2e3fd4fd13f6518f2719c1f170 Mon Sep 17 00:00:00 2001 From: Paul Iannetta Date: Thu, 31 Oct 2019 17:34:10 +0100 Subject: vim: tex: add a switch for Goyo + spell --- .config/nvim/after/ftplugin/tex.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/nvim/after/ftplugin/tex.vim') 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 j v:count ? (v:count > 5 ? "m'" . v:count : '') . 'j' : 'gj' nnoremap k v:count ? (v:count > 5 ? "m'" . v:count : '') . 'k' : 'gk' nnoremap :Make! + +nnoremap yog :Goyo + +autocmd! User GoyoEnter set spell +autocmd! User GoyoLeave set nospell + +set spelllang=en -- cgit v1.2.3-54-g00ecf