0
votes
0answers
16 views

MacBook: Nano keyboard shortcuts changed

I recently installed Ubuntu 14.04 LTS on a MacBook Pro. In the terminal, I typed: sudo apt-get install nano nano When the text editor opens in the terminal, the keyboard shortcuts, e.g. ^X, do not ...
2
votes
3answers
247 views

How do I get back to nano after hitting Ctrl-Z if I have no shell prompt

I'm using nano inside a MATLAB session that is running inside a screen (-x) terminal. I accidentally hit Ctrl-Z and it immediately leaves nano, prints "Use "fg" to return to nano", but does not show ...
0
votes
2answers
71 views

Editing with Nano

Is it possible to edit an existing text file using only one line of command and Nano. For instance if I have a text file called "new.txt" and I want to write "HELLO WORLD" in it. Can I do like this: ...
2
votes
2answers
85 views

Delete total line in nano?

some times while I am editing my files with nano I am facing difficulty while deleting some big line, I need to hold Del key for long time. is there any shortcut I can found to delete the total line ...
7
votes
1answer
8k views

Undo functionality in nano

I use the commmand line text editor nano. How do I undo an action while editing text? For example: I typed some text and then changed my mind. Now I want to return to previous state. How?
1
vote
1answer
102 views

txt file and linebreaks

I used antiword >filename.txt To convert a .doc word document to a txt file. Then I edited the file in nano (also tried vim) and when the document is viewed in libre office and gvim or even text ...
2
votes
1answer
535 views

How can I change the keyboard shortcuts in nano?

To indent a whole block of code in nano, after selecting it with alt+a, I have to press alt+{, which doesn't work on my german layout macintosh keyboard (and would be pretty annoying even if it did). ...
0
votes
2answers
477 views

Accents - Nano editor

i am using NANO as my everyday text editor. I'm using an old laptop, so NANO it's fast, lightweight, and saves me battery. The only problem is the fact i can't use Special Characters and accents. For ...
1
vote
1answer
287 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 ...
23
votes
4answers
80k 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 ...
9
votes
1answer
3k 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?
11
votes
4answers
21k 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)?