How to enable or disable line breaking in vim

In order to stop line breaking in vim, we must follow these steps:

Process to disable

1. Once inside vim, type [ESC + :]

:set nowrap

Process to enable

1. Once inside vim, type [ESC + :]

:set wrap