Editor: nano

From Dreamwidth Notes
Revision as of 21:48, 7 April 2009 by 66.30.14.175 (Talk)

Jump to: navigation, search
Expand: This needs expansion.

By default nano quietly adds linebreaks to the file that you're working on, not just word-wraps it for display in the editor. This can cause trouble with generating patches, and because it's indistinguishable from word-wrapping in the editor, it can take you a while to diagnose it. To prevent this from happening, when you call nano, do it with the -w flag, which will turn off auto-linebreaking:

nano -w filename

To tell nano to not wrap lines by default, add (or uncomment) this line in /etc/nanorc:

set nowrap