From c1ebfa04ae2c4d09c07cb9b5b5b9b7e829d099f5 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 28 Apr 2017 16:13:15 +0200 Subject: [PATCH] docs: in the FAQ, extend the answer to the pasting problem --- doc/faq.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/faq.html b/doc/faq.html index dbbe821e..0750f9d5 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -196,7 +196,7 @@

4.8a. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?

You have the autoindent feature turned on. Hit Meta-I to turn it off, paste your text, and then hit Meta-I again to turn it back on.

4.8b. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?

-

When pasting from Windows, in some situations linefeeds are sent instead of carriage returns (Enters). And linefeeds are ^Js, which make nano justify (rewrap) the current paragraph. To prevent these linefeeds from causing these unwanted justifications, add this line to your .nanorc on the remote Linux box: unbind ^J main.

+

When pasting from Windows, in some situations linefeeds are sent instead of carriage returns (Enters). And linefeeds are ^Js, which make nano justify (rewrap) the current paragraph. To prevent these linefeeds from causing these unwanted justifications, add this line to your .nanorc on the remote Linux box: unbind ^J main or bind ^J enter main, depending on whether the paste contains CR + LF or only LF.

4.9. I've compiled nano with color support, but I don't see any color when I run it!

If you want nano to actually use color, you have to specify the color configurations you want it to use in your .nanorc. Several example configurations are in the syntax/ subdirectory of the nano source, which are normally installed to /usr/local/share/nano/. To enable all of them, uncomment the line # include "/usr/local/share/nano/*.nanorc" in your nanorc. See also section 3.9a.

4.10. How do I make nano my default editor (in Pine, mutt, etc.)?