From 29d7d4a65f234424cb9d84c1422d8fd138905606 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Sep 2019 19:07:44 +0200 Subject: [PATCH] [nvim] Add spellchecking shortcuts to vim O to enable spellchecking for current buffer, o to show suggestiong for word under curser. (Try it out here, just hover over misspelled cursor!) --- .config/nvim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 430d6c5..bb40608 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -380,6 +380,10 @@ nnoremap \ :vsp nnoremap % nnoremap % +" Spell-check set to O, 'o' for 'orthography': +noremap O :setlocal spell! spelllang=en_us +noremap o z= + " select the whole buffer with -a nnoremap a ggVG