The nano text editor.

learn more… | top users | synonyms

0
votes
1answer
7 views

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

When justifying paragraphs, nano by default justifies into the number of columns in the screen. How to force it to justify in a different number (e.g. 80 characters)?
0
votes
1answer
48 views

Using nano to edit a crontab [closed]

I haven't been able to get crontab to execute any of my scripts on start-up. I want to know why it doesn't work. Below is an example of me trying to use it, and I've tried to provide as much ...
0
votes
1answer
28 views

.txt File from Mac not converting properly

I have a .txt file from my Mac that when I send it over to my Raspberry Pi running Raspbian and open it in nano it converts weirdly. Example: Text file in Mac OSX: ...
1
vote
1answer
50 views

Resizing the terminal window for ipython command prompt

I am using the OS X Terminal (I know, not Linux or Unix, but hopefully that's irrelevant here) for a number of operations, and commonly use nano to quickly edit files. In doing so I often resize the ...
2
votes
3answers
522 views

Is there any way to install Nano on CoreOS?

CoreOS does not include a package manager but my preferred text editor is Nano, not vi or vim. Is there any way around this? gcc is not available so its not possible to compile from source: ...
1
vote
1answer
67 views

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 ...
2
votes
1answer
68 views

Color syntax highlighting working on one system but not the others. Same nanorc file

I'm trying to set my color syntax highlighting in nano, but it doesn't work as expected. One system everything works. This is an Fedora 21 laptop. Two systems everything I've tried except man ...
0
votes
1answer
86 views

Nano Editor over Screen in Terminal isn't fullscreen

When I connect to a device using Screen in terminal, if I open Nano text-editor it only takes up a fraction of the screen. How do I make it fullscreen?
3
votes
1answer
115 views

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. ...
0
votes
0answers
62 views

Where is php config and .htaccess located on Raspbian?

I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am ...
5
votes
2answers
232 views

How to type a right to left language in terminal?

Please forgive me if this is a bad question. OK. I have installed Debian recently (without a GUI) to learn the CLI and C using the LearnCodeTheHardWay tutorials. Its going well, and I feel at this ...
4
votes
2answers
76 views

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 ...
2
votes
1answer
163 views

How to auto highlight comments in nano?

I was wondering how could I make lines commented with a # highlighted in a different colour in nano? I saw this question on askubuntu that shows how to syntax highlight for different languages. ...
3
votes
2answers
3k views

Long line wrapping in Nano

When editing an authorised_keys file in Nano, I want to wrap long lines so that I can see the end of the lines (i.e tell whose key it is). Essentially I want it to look like the output of cat ...
6
votes
1answer
2k views

How to indent multiple lines in nano

Selecting lines in nano can be achieved using Esc+A. With multiple lines selected, how do I then indent all those lines at once?
1
vote
1answer
295 views

What does the command set speller “aspell -x -c” in nanorc do?

When I pressed Ctrl+T in Nano it gave the error Spell checking Failed: Error invoking Spell. So I followed this answer and added set speller "aspell -x -c" to my ~/.nanorc and the spell check is now ...
0
votes
1answer
939 views

Tmux ranger integration: opening text files in new panes

Here we have some amazing tools: tmux, ranger, vim... Would be amazing to configure ranger to open the files (when text editable) in a tmux newpane? Is that easy and how it is done?
18
votes
2answers
6k views

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?
1
vote
4answers
88 views

Editors Nano/VIM not using resources

Does anyone here know the resources it takes for editors to search and replace in a large file? The reason I am asking, is I have a 32 core server that HTOP is only showing one core at 100% when ...
0
votes
0answers
109 views

All installed software/commands will not run unless root user in Slackware 14

I originally thought it was just startx, but now I've discovered ALL commands are "not found" for any user except root... I obviously haven't checked the path for every single one, but the path for ...
5
votes
4answers
507 views

Accidental `nano SomeFile | uniq` renders the shell unresponsive

In my attempt to get unique entries (read lines) out of a simple text file, I accidentally executed nano SomeTextFile | uniq. This "instruction" renders the shell (bash) completely (?) ...
4
votes
2answers
909 views

Piped input to nano

Why does ls | nano - open the editor in Ubuntu but close the editor and save a file to -.save in CentOS? How can I get nano in CentOS to remain open when reading stdin?
3
votes
1answer
1k views

Fixing scrolling in nano running in tmux in mate-terminal

The problem: I open a terminal (in Linux Mint, so mate-terminal) zsh is the shell Then I run tmux Edit a file with nano Scroll up and down that file with the cursor Issue: When scrolling down in ...
2
votes
5answers
3k views

Comment all lines in a text file?

In a text file I need to comment out all lines by adding a ";" as first character of each line. What is a good way to do this? I thought of Vim's visual block mode, but I couldn't find a "select all" ...
0
votes
0answers
229 views

How to get nano to work properly under mutt?

I have set nano as the default editor in mutt; mutt launches nano normally enough, but when I try to send the message (ie. save and quit, separately) mutt says the message has been aborted. Any idea ...
2
votes
1answer
160 views

How do I detect whether changes in nano were discarded or saved?

I am currently writing a small setup script for a Linux application that needs the user to edit a configuration file before the application is started. I've chosen to make the script simply open the ...
2
votes
2answers
3k views

Nano editor - display not updating with PuTTY

When I use PuTTY to connect to a specific Linux server via the SSH protocol, and I try to edit a file using the nano editor, the "enter" does not update the display. When I press enter to insert ...
7
votes
2answers
503 views

Does OS X have its own line format?

Obviously there are at least two newline types: DOS and Unix. But does OS X have its own plaintext 'format'? I opened a text file in nano and was surprised to see: [ Read 26793 lines (Converted from ...
6
votes
1answer
2k views

How to 'UnJustify!' text in GNU nano

I enjoy using nano as a respite from my usual GTK-based text editor. I like the simplicity of the interface, and using CTRL-K is the fastest way I know of to edit down long textfiles. However, I have ...
7
votes
2answers
9k views

Is there line numbering for nano?

Is there a way to turn on line numbering for nano?
22
votes
2answers
9k views

Is it possible to save as sudo from nano after you've forgotten to run as sudo?

A lot of the time I edit a file with nano, try to save and get a permission error because I forgot to run it as sudo. Is there some quick way I can become sudo without having to re-open and re-edit ...