LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2014, 05:32 PM   #1
YesItsMe
Member
 
Registered: Oct 2014
Posts: 915

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Fixing nano's screwing up of line endings without having to learn a new editor


My way:

1. install joe
2. # echo 'alias nano="jpico"' >> ~/.zshrc
3. Profit!

I'm not entirely sure if there's a way to actually make nano stop wrapping a file where it doesn't fit, but my solution works surprisingly well too.
 
Old 11-20-2014, 07:33 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,300
Blog Entries: 28

Rep: Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134
Did you look at /etc/nanorc? Here's bitn (there's a lot more I didn't bother to read):

Code:
## Don't add newlines to the ends of files.
# set nonewlines

## Don't wrap text at all.
# set nowrap

.....

## Enable soft line wrapping (AKA full-line display).
# set softwrap
As an aside, I did not know there was a "nanorc" file and I don't use nano; this was a shot in the dark. I have learned, though, looking for an *rc file usually yields results.

Last edited by frankbell; 11-20-2014 at 07:35 PM.
 
1 members found this post helpful.
Old 11-20-2014, 07:42 PM   #3
YesItsMe
Member
 
Registered: Oct 2014
Posts: 915

Original Poster
Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Oh, that's nice. Is there a similar trick to make it read German umlauts properly?
 
Old 11-20-2014, 08:51 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,300
Blog Entries: 28

Rep: Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134
Quote:
Oh, that's nice. Is there a similar trick to make it read German umlauts properly?
I have no idea, but I suspect that has more to do with the selected keyboard language than with the particular program.

This may help. https://bbs.archlinux.org/viewtopic.php?id=161116
 
Old 11-21-2014, 03:15 AM   #5
YesItsMe
Member
 
Registered: Oct 2014
Posts: 915

Original Poster
Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
As they're even displayed improperly on load, I doubt it's the keyboard. :/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy/paste a line in nano editor smp0219 Linux - Newbie 10 08-06-2019 03:24 PM
[SOLVED] gedit view line endings -- Possible? SilversleevesX Linux - Software 4 11-01-2011 06:42 PM
linux nano editor himanshugarg04 Linux - Software 4 11-05-2009 07:09 AM
LXer: Flip - Convert text file line endings between Unix and DOS formats LXer Syndicated Linux News 1 03-03-2009 01:38 PM
How to convert Line endings of text files mikesjays Linux - Newbie 5 04-07-2008 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration