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()