From f6354164802d1f273035fd3e6fce5fda1efb8bc8 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Wed, 28 Apr 2021 14:15:47 +0200 Subject: [PATCH] Add wrap line shortcut for neovim --- .config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e2bf24e..978d2a9 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -171,3 +171,10 @@ let g:syntastic_check_on_wq = 0 " Neomutt configuration for nvim compatibility au BufRead /tmp/neomutt-* set tw=72 + +" Line wrapping shortcuts +function! ToggleWrap() + set wrap! linebreak! nolist! +endfunction + +nnoremap w :call ToggleWrap()