diff --git a/doc/faq.html b/doc/faq.html index 20f3e370..745fc4ba 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -32,19 +32,19 @@ 3.6. How can I make the executable smaller? This is too bloated!
3.7. Tell me more about this multibuffer stuff!
3.8. Tell me more about this verbatim input stuff!
- 3.9a. How do I make a .nanorc file that nano will read when I start it?
+ 3.9. How do I make a .nanorc file that nano will read when I start it?

4. Running

4.1. How do I open a file with a name beginning with '+' from the command line?
4.2. Ack! My Backspace/Delete/Enter/Meta/double bucky key doesn't seem to work! What can I do?
4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?
- 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? 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.)?
- 4.11. How do I select text for or paste text from the clipboard in an X terminal when I'm running nano in one and nano's mouse support is turned on?
+ 4.4. With what keystroke can I paste text from the clipboard into nano?
+ 4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?
+ 4.6. When I paste text into a document, each line gets indented further than the last. Why? And how can I stop this?
+ 4.7. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?
+
4.8. I've compiled nano with color support, but I don't see any color when I run it!
+ 4.9. How do I make nano my default editor (in Pine, mutt, etc.)?

5. Internationalization

@@ -165,7 +165,7 @@

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 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?

+

3.9. 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".


@@ -183,15 +183,17 @@ C Shell users (tcsh and csh): setenv TERM vt100

4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?

You can use the -K or --rawsequences option on the command line, or add the line set rawsequences to your .nanorc. However, nano's mouse support will be disabled if you do any of these things.

-

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

+

4.4. 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? And how can I stop this?

+

4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?

+

Try holding down the Shift key and selecting or pasting the text as you normally would.

+

4.6. 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?

+

4.7. 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!

-

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.)?

+

4.8. 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.9.

+

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

You need to make nano your $EDITOR. If you want this to be saved, you should put a line like this in your .bashrc if you use bash (or .zshrc if you believe in zsh):

export EDITOR=/usr/local/bin/nano

or, if you use tcsh, put this in your .cshrc file:

@@ -204,8 +206,6 @@

If you're a mutt user, you should see an effect immediately the next time you log in. No further configuration is needed. However, if you want to let people know you use nano to compose your email messages, you can put a line like this in your .muttrc:

my_hdr X-Composer: nano x.y.z

Again, replace x.y.z with the version of nano you use.

-

4.11. How do I select text for or paste text from the clipboard in an X terminal when I'm running nano in one and nano's mouse support is turned on?

-

Try holding down the Shift key and selecting or pasting the text as you normally would.


5. Internationalization