How to disable wrapping lines in nano?
To change persistent settings for nano
, we can edit the user-specific .nanorc file (/home/user/.nanorc). This file contains configuration settings that nano
loads on start-up.
To disable line-wrapping, we need to specify the nowrap
directive. Add this line to .nanorc:
set nowrap
We may need to create this file if it doesn't exist. For more information about the available settings in this file, see the .nanorc man page:
$ man nanorc