No line wrapping in Vi

The vi editor in Linux does line wrapping by default. To turn this off for some files with huge lines I use the following command from vi command prompt:

To disable wrap.
:set nowrap

To enable wrap.
:setwrap

Leave a Reply

Your email address will not be published. Required fields are marked *