If you want to wrap lines in a specific area, move the cursor to the text you want to format and type gq followed by the range. For example, gqq wraps the current line and gqip wraps the current paragraph. The following sets a wrap margin of 2 characters from the right window border.
What is Wrap in Vim?
wrap tells Vim to word wrap visually (as opposed to changing the text in the buffer), and linebreak tells Vim to only wrap at a character in the breakat option (by default, this includes " ^I! ... To make settings permanent, without the need to type this every time you use Vim, just add the commands to your vimrc.
What does line wrap do?
In text display, line wrap is continuing on a new line when a line is full, so that each line fits into the viewable window, allowing text to be read from top to bottom without any horizontal scrolling.