From 3089a98169708edeea6b4afc84ec3eda11043ba1 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 12 Mar 2018 11:41:21 +0100 Subject: [PATCH] tweaks: fix a typo and adjust some wording and formatting in the FAQ --- doc/faq.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/faq.html b/doc/faq.html index 9291fadf..5b940d15 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -42,10 +42,10 @@ 4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?
4.4. Ack! When I hold down a Meta key combination for a while, the character of the held key gets inserted now and then. What gives?
4.5. How do I type the F13-F16 keys listed in the help viewer? My keyboard only has F1-F12!
- 4.6. nano crashes when I type <insert keystroke here>!
+ 4.6. nano crashes when I type <insert keystrokes here>!
4.7. nano crashes when I resize my window. How can I fix that?
4.8a. With what keystroke can I paste text from the clipboard into nano?
- 4.8b. 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?
+ 4.8b. When I paste text into a document, each line gets indented further than the last. Why? And how can I stop this?
4.8c. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?
4.9. I've compiled nano with color support, but I don't see any color when I run it!
4.10. How do I make nano my default editor (in Pine, mutt, etc.)?
@@ -166,11 +166,11 @@

With --disable-wrapping-as-root you can disable any hard-wrapping by default when the user is root, useful to prevent accidentally changing long lines in system configuration files.

3.7. Tell me more about this multibuffer stuff!

-

To use multiple file buffers, you must not have configured nano with --disable-multibuffer nor with --enable-tiny (use nano -V to check the compilation options). Then when you want to insert a file into its own buffer instead of into the current file, just hit Meta-F after typing ^R. If you always want files to be loaded into their own buffers, use the --multibuffer or -F flag when you invoke nano.

-

You can move between the buffers you have open with the Meta-< and Meta-> keys, or more easily without holding Shift: Meta-, and Meta-. (clear as mud, right? =-). When you have more than one file buffer open, the ^X shortcut will say "Close", instead of the normal "Exit" when only one buffer is open.

+

To use multiple file buffers, you must not have configured nano with --disable-multibuffer nor with --enable-tiny (use nano -V to check the compilation options). Then when you want to insert a file into its own buffer instead of into the current file, just hit Meta-F after typing ^R. If you always want files to be loaded into their own buffers, use the -F or --multibuffer flag when you invoke nano, or add set multibuffer to your .nanorc file.

+

You can move between the buffers you have open with the Meta-< and Meta-> keys, or more easily without holding Shift: Meta-, and Meta-. (clear as mud, right? =-). When you have more than one buffer open, the ^X shortcut will say "Close", instead of "Exit".

3.8. Tell me more about this verbatim input stuff!

When you want to insert a literal character into the file you're editing, such as a control character that nano usually treats as a command, first press Meta-V (if you're not at a prompt, you'll get the message "Verbatim Input" on the status bar), then press the key(s) that generate the character you want.

-

Alternatively, if you've enabled Unicode support (see section 5.3), you can press Meta-V and then type a six-digit hexadecimal code (from 000000 to 10FFFF, case-insensitive), and the character with the corresponding value will be inserted. The statubar will change to "Unicode Input: ......" when you do this.

+

Alternatively, if Unicode support is enabled (see section 5.3), you can press Meta-V and then type a six-digit hexadecimal code (from 000000 to 10FFFF, case-insensitive), and the character with the corresponding value will be inserted. The status bar will change to "Unicode Input: ......" when you do this.

3.9a. How do I make a .nanorc file that will be read when I start nano?

It's not hard at all! But, your nano must not have been compiled with --disable-nanorc. Then simply copy the sample.nanorc that came with the nano source or your nano package (most likely in /usr/doc/nano) to .nanorc in your home directory. If you didn't get one, the syntax of the file is simple. Flags are turned on and off by using the words set and unset plus the long option name for the feature. For example, "set nowrap" or "set smarthome".

3.9b. How about in Win32?

@@ -197,14 +197,14 @@

This was a bug in how nano handled consecutive escape sequences. It should be fixed since version 2.6.0.

4.5. How do I type the F13-F16 keys listed in the help viewer? My keyboard only has F1-F12!

It depends on the terminal type you're using. On some terminals, such as the FreeBSD console, xterm, konsole, and gnome-terminal, Shift-F1 to Shift-F4 will generate F13 to F16. On other terminals, such as the Linux console, rxvt, and Eterm, Shift-F3 to Shift-F6 will generate F13 to F16.

-

4.6. nano crashes when I type <insert keystroke here>!

+

4.6. nano crashes when I type <insert keystrokes here>!

If you aren't trying some bizarre keystroke combination with some bizarre $TERM entry, chances are you have found a bug. You are welcome to submit it to the nano-devel list or in the bug tracker on Savannah.

4.7. nano crashes when I resize my window. How can I fix that?

Older versions of nano had this problem. Please upgrade to version 2.7.0 or newer.

4.8a. With what keystroke can I paste text from the clipboard into nano?

In most desktop environments Shift+Insert will paste the contents of the clipboard.

-

4.8b. 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 text into a document, each line gets indented further than the last. Why? And how can I stop this?

+

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.8c. 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 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!