You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="#4.1">4.1. Alt+Up does nothing on a Linux console. How can I make it scroll?</a><br>
47
47
<ahref="#4.2">4.2. How can I make Ctrl+Shift+Left/Right select words on urxvt?</a><br>
48
-
<ahref="#4.3">4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?</a><br>
48
+
<ahref="#4.3">4.3. How do I remove an unwanted Byte Order Mark?</a><br>
49
49
<ahref="#4.4">4.4. With what keystroke can I paste text from the clipboard into nano?</a><br>
50
50
<ahref="#4.5">4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?</a><br>
51
51
<ahref="#4.6">4.6. When I paste text into a document, each line gets indented further than the last. Why? And how can I stop this?</a><br>
52
52
<ahref="#4.7">4.7. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?</a><br>
53
53
<ahref="#4.8">4.8. I've compiled nano with color support, but I don't see any color when I run it!</a><br>
54
-
<ahref="#4.9">4.9. How do I make nano my default editor (in Pine, mutt, etc.)?</a><br>
54
+
<ahref="#4.9">4.9. How do I make nano my default editor (in Pine, mutt, git, ...)?</a><br>
55
55
</p></blockquote>
56
56
<h3><ahref="#5">5. Internationalization</a></h3>
57
57
<blockquote><p>
@@ -92,7 +92,7 @@ <h3 id="1.2">1.2. What is the history behind nano?</h3>
92
92
<h3id="1.3">1.3. Why the name change from TIP?</h3>
93
93
<blockquote><p>On January 10, 2000, TIP was officially renamed to nano because of a namespace conflict with another program called 'tip'. The original 'tip' program "establishes a full duplex terminal connection to a remote host", and was included with many older Unix systems (and newer ones like Solaris). The conflict was not noticed at first because there is no 'tip' utility included with most GNU/Linux distributions (where nano was developed).</p></blockquote>
94
94
<h3id="1.4">1.4. What is the current version of nano?</h3>
95
-
<blockquote><p>The current version of nano <i>should</i> be <b>8.3</b>. Of course, you should always check the <ahref="https://nano-editor.org/">nano homepage</a> to see what the latest and greatest version is.</p></blockquote>
95
+
<blockquote><p>The current version of nano <i>should</i> be <b>8.4</b>. Of course, you should always check the <ahref="https://nano-editor.org/">nano homepage</a> to see what the latest and greatest version is.</p></blockquote>
96
96
<h3id="1.5">1.5. I want to read the man page without having to download the program!</h3>
@@ -219,8 +219,9 @@ <h3 id="4.2">4.2. How can I make Ctrl+Shift+Left/Right select words on urxvt?</h
219
219
URxvt.keysym.S-Page_Up: \033[5;2~
220
220
URxvt.keysym.S-Page_Down: \033[6;2~</pre>
221
221
<p>Then run <b>xrdb ~/.Xresources</b> and restart your urxvt terminal. Now <b>Ctrl+Shift+Left</b> and <b>Ctrl+Shift+Right</b> will select words, <b>Alt+Up</b> and <b>Alt+Down</b> will scroll the text without moving the cursor, and several such things more.</p></blockquote>
222
-
<h3id="4.3">4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?</h3>
223
-
<blockquote><p>You can use the <b>-K</b> or <b>--rawsequences</b> option on the command line, or add the line <b>set rawsequences</b> to your .nanorc. However, nano's mouse support will be disabled if you do any of these things.</p></blockquote>
222
+
<h3id="4.3">4.3. How do I remove an unwanted Byte Order Mark?</h3>
223
+
<blockquote><p>To check whether a file contains a Byte Order Mark (BOM), open the file and type <b>Ctrl+Home</b>. If there is a BOM, the status bar will tell you so. Now type <b>Delete</b> to remove the BOM, and <b>^S</b> to save the file.</p>
224
+
<p>If you've accidentally deleted a Byte Order Mark from a file that needs it, and you want to restore it, then type: <b>Ctrl+Home Alt+V feff Enter</b>. Verify that the BOM is back with <b>Ctrl+Home</b>, and save the file with <b>^S</b>. (Note that on Unix, files should not contain a BOM.)</p></blockquote>
224
225
<h3id="4.4">4.4. With what keystroke can I paste text from the clipboard into nano?</h3>
225
226
<blockquote><p>In most desktop environments <b>Shift+Insert</b> pastes the contents of the clipboard.</p></blockquote>
226
227
<h3id="4.5">4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?</h3>
@@ -233,19 +234,20 @@ <h3 id="4.7">4.7. When I paste from Windows into a remote nano, nano rewraps the
233
234
<p><i>Update:</i> Since version 4.8, nano ignores linefeed characters in a paste (when your terminal understands <ahref="https://en.wikipedia.org/wiki/Bracketed-paste">bracketed pastes</a>), so you no longer need the above workaround.</p></blockquote>
234
235
<h3id="4.8">4.8. I've compiled nano with color support, but I don't see any color when I run it!</h3>
235
236
<blockquote><p>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 <b>syntax/</b> subdirectory of the nano source, which are normally installed to <b>/usr/local/share/nano/</b>. To enable all of them, uncomment the line <b># include "/usr/local/share/nano/*.nanorc"</b> in your nanorc. See also section <ahref="#3.9">3.9</a>.</p></blockquote>
236
-
<h3id="4.9">4.9. How do I make nano my default editor (in Pine, mutt, etc.)?</h3>
237
+
<h3id="4.9">4.9. How do I make nano my default editor (in Pine, mutt, git, ...)?</h3>
237
238
<blockquote><p>You need to make nano your $EDITOR. If you want this to be saved, you should put a line like this in your <b>.bashrc</b> if you use bash (or <b>.zshrc</b> if you believe in zsh):</p>
<p>Change /usr/local/bin/nano to wherever nano is installed on your system. Type "which nano" to find out. This will not take effect until the next time you log in. So log out and back in again.</p>
242
241
<p>Then, on top of that, if you use Pine, you must go into setup (type <b>S</b> at the main menu), and then configure (type <b>C</b>). Hit Enter on the lines that say:</p>
<p>Then exit (<b>E</b>) and select Yes (<b>Y</b>).</p>
246
245
<p>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 <b>.muttrc</b>:</p>
<p>Note the <b>+1</b> at the end — it makes nano start always at the top of the edit window. The guidestripe helps you keep the text within a reasonable width.</blockquote>
0 commit comments