nano is a simple command line text editor which comes preinstalled in Ubuntu by default.

learn more… | top users | synonyms

29
votes
1answer
55k views

How do I delete multiple lines in nano without affecting the clipboard?

I can select all file by going to the 1st line Alt+\, start marking the text by Alt+A, go to the last line by Alt+/ But there, I don't know which key to remove the selected text. Hit delete doesn't ...
1
vote
1answer
78 views

installing eclipse, stuck

Noob here, setting up my first linux box. I'm following this page to install eclipse I get to the part where it says to save the nano file - but it's asking me for a file name and I don't know what ...
1
vote
1answer
456 views

Editing with nano, Alt is caught by the window menus, how can I fix that?

The Alt key is used for many useful commands, but unfortunately it's caught by the terminal window to activate the window menus (File, Edit, ...). I would like to either force the terminal window to ...
65
votes
7answers
71k views

How do I enable syntax highlighting in nano?

Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights.
78
votes
2answers
89k views

How to show line numbering in nano when opening a file

Is there a way to tell nano to automatically show line numbering each time I open a file.
3
votes
1answer
539 views

Update Geany to use Nano shortcuts

I use Geany a lot for editing, but ultimately use nano far more often. While navigating nano I use Ctrl+K and Ctrl+U key combo all the time (Cut/Paste). Yes, I understand there is Ctrl+C and Ctrl+V ...
28
votes
4answers
151k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
11
votes
2answers
2k views

Bind Ctrl+Right to nextword in nano (as it is in all other apps)

And likewise Ctrl+Left to prevword. I read the man page of nanorc and found bind key function menu So the line bind ^Left prevword main would be what I want, the problem is that nano only ...
1
vote
2answers
952 views

Getting error with spell check in nano

I am getting the following error while doing spell check in nano editor. Please help to resolve this. Spell checking failed: Error invoking "spell": Bad file descriptot
49
votes
3answers
84k views

Any way to search for text within nano?

Nano is the editor I use in command prompts. When I open a large file I would like to search for some text (think Ctrl + F). Is there a way to do this?
11
votes
2answers
6k views

How do I get spaces instead of tabs in nano?

I usually edit Python files with nano, so I need four spaces instead of a tab. How can I get nano to automatically insert spaces for tabs, and control how many of them it inserts?
0
votes
1answer
4k views

How do I copy music from ipod nano to computer (Banshee)

I have a fresh install of Ubuntu 11.04. My Nano syncs fine with Banshee. How do I copy the music already on the Nano onto my computer? There doesn't seem to be an option to do this within Banshee. ...
13
votes
5answers
39k views

How to switch the editor in mc (midnight commander) from nano to mcedit?

Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)?
9
votes
3answers
12k views

Save an edited file in nano, but no permissions

I edited a file in /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano? ...
2
votes
2answers
2k views

Nano syntax highlighting for C# and/or ASP.Net

Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?