Questions tagged [nano]

nano is a text editor from the GNU project; apply this tag if you are asking about features or functionality of the editor

Use this tag if you have a question about using nano.

Nano's home page is at: https://www.nano-editor.org, including a section on Documentation

157 questions
96
votes
8 answers

Nano - jump to end of file

I have some long log files. I can view the last lines with tail -n 50 file.txt, but sometimes I need to edit those last lines. How do I jump straight to the end of a file when viewing it with nano?
payloc91
  • 2,329
74
votes
3 answers

What does "XOFF ignored, mumble mumble" error mean?

While trying to save a file out of Nano the other day, I got an error message saying "XOFF ignored, mumble mumble". I have no idea what that's supposed to mean. Any insights?
46
votes
8 answers

Is there line numbering for nano?

Is there a way to turn on line numbering for nano?
chrisjlee
  • 8,523
34
votes
1 answer

How to comment multiple lines in nano at once?

I can able to select multiple lines using Esc+A. After this, what shortcut(s) should I use to comment/uncomment the selected lines?
krkart
  • 565
22
votes
1 answer

Nano Editor: Delete to the end of the file

When using GNU's Nano Editor, is it possible to delete from the actual cursor position to the end of the text file? My workaround for now: keep pressed CtrlK (the delete full line hotkey). But this method is not so confortable on slow remote…
19
votes
1 answer

How to show non printing characters in nano

Is there a way to show or toggle non printing characters like newline or tab in nano? At first let's assume the file is plain ascii.
sZpak
  • 481
14
votes
1 answer

Is it possible to easily switch between tabs and spaces in nano?

Normally I want nano to replace tabs with spaces, so I use set tabstospaces in my .nanorc file. Occasionally I'd like to use nano to make a quick edit to makefiles where I need real tab characters. Is there any way to dynamically toggle…
jamesdlin
  • 838
8
votes
2 answers

Is there a global nanorc?

I've recently started using nano quite a bit for code editing. I've written custom syntax files, and I can include them in my local ~/.nanorc. However, I do work across multiple accounts, so I manually have to apply the include to each user's…
IBPX
  • 581
5
votes
1 answer

Line length marker in nano

How can I highlight a given column using nano? I'm using a fairly large terminal but I would like a mark to know if my code exceeds the limit of let's say 80 characters.
user362658
4
votes
1 answer

Display full path in title bar of nano editor

The nano editor by default displays only the filename being edited, but not its full path. This can be a problem, if I need to edit old vs new versions of files by the same name. Does anyone know of a way to toggle or change this behaviour to…
4
votes
2 answers

Is it posssible to save text in nano with one keypress

I use nano as my favorite text editor. I was able to save my documents by pressing F3 + Enter. But is there a way to save the document directly by pressing some key, if I'm sure I would like to save the document to the same name as before?
novice
  • 55
3
votes
0 answers

Received SIGHUP or SIGTERM: nano cannot edit empty file

I have a empty file in home directory, when I run nano temp4 it gives me error Received SIGHUP or SIGTERM and does not open the file @archlinux ➜ ~ ᐅ nano temp4 Received SIGHUP or SIGTERM @archlinux ➜ ~ ᐅ l temp4 -rw-r--r-- 1 edward…
Alex Jones
  • 6,353
3
votes
1 answer

How to set up the numer of columns on a justified paragraph in nano

When justifying paragraphs, nano by default justifies into the number of columns in the screen. How can I force it to justify to a different number of columns (e.g. 80 characters)?
brandizzi
  • 2,864
  • 3
  • 22
  • 29
2
votes
1 answer

Nano: how to just open a new file buffer inside of nano without altering the current one?

I love the nano feature that enables you to open multiple files at once and the fact that switching between them is very easy: nano file1 file2 etc. However, when I try to open a new file while working on one with ^R, it just inserts the whole fine…
2
votes
1 answer

Which linters are supported by nano?

In my latex.nanorc file, I have the following instructions: syntax "LaTeX" "\.(la)?tex$" linter lacheck However, when I press the keyboard shortcut to run the linter, I get an error message La commande « lacheck » n'a produit aucune ligne…
user362658
1
2