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

learn more… | top users | synonyms

57
votes
5answers
61k 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.
64
votes
2answers
74k 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
526 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 ...
27
votes
4answers
129k 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 ...
10
votes
2answers
1k 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
823 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
43
votes
3answers
69k 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
5k 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
34k 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
11k 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
1k 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?