Word Wrapping in vim

It has taken some research, but I was unable ever to accomplish in emacs I have been able to pull off successfully, and in short order, in vim. To be sure, it’s not my doing but the work of others that I have cobbled together here, but what it provides is the kind of word wrapping to which most of us have become accustomed in GUIs. You will need to place the following in your .vimrc file in your home directory:

:set wrap
:set linebreak
:set nolist  " list disables linebreak
:set textwidth=0
:set wrapmargin=0
:set formatoptions+=l

Leave a Reply