The vim line wrap command

Vim FAQ: How do I configure Vim to wrap lines (or not wrap lines) of text?

Answer: To get Vim to not wrap text, issue the "vim set nowrap" command, like this:

:set nowrap

By default vim will wrap long lines in the editor, but this command changes that display, so long lines will now go off-screen to your right.

vim set wrap - how to get back to wrapping mode

Getting back to the vim editor's normal line wrap mode is also simple. Just issue a very similar "vim set wrap" command:

:set wrap

Once again your lines of text will wrap around your display.