![]() |
Warning to anyone using GNU nano from Extras!
If anyone is using GNU nano from Extras as a text editor, beware that it automatically inserts line breaks where your lines wrap by default, which could seriously mess up any scripts / system files you're working on! To fix this run:
echo "set nowrap" > ~/.nanorc This will create a config file (used by both user and root, since they have the same home directory) for nano and tell it not to wrap (usually this is set by default on most distros). Even experienced Linux users like myself may be used to Nano having nowrap set by default, and might only find that Maemo is different after they mess up a critical config file! |
Re: Warning to anyone using GNU nano from Extras!
Real men don't use Nano....
|
Re: Warning to anyone using GNU nano from Extras!
Thanks, although I've always used "nano -w" myself for the last few years when I came across the same problem in an old debian. If it's true that most distros these days come with nowrap as standard, then maybe this should be reported as a bug against the maemo nano package.
|
Re: Warning to anyone using GNU nano from Extras!
Nano is very handy for making quick changes to text files from the terminal...if I want something fancy like vi/emacs I'll just use Scite since I'm not a masochist :p
|
Re: Warning to anyone using GNU nano from Extras!
Actually, with the nano-opt package, this file should be saved in /home/user/.nanorc as I've just discovered - it doesn't read the one in /etc at all.
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
I'm not a masochist either. |
Re: Warning to anyone using GNU nano from Extras!
Quote:
Can anyone else confirm? (make sure it's /etc/nanorc and not /etc/.nanorc) |
Re: Warning to anyone using GNU nano from Extras!
Strange, mine just ignored the file completely. I don't know why, but anyway I guess it's better to put it in /home/user as it saves a precious 10 bytes of rootfs space ;)
|
Re: Warning to anyone using GNU nano from Extras!
I've just noticed some inconsistent behavior using /etc/nanorc, going to update my first post to recommend ~/.nanorc
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
Second: You say that his comment is bs, so what is YOUR comment called? And third: yes, he's right... Real men uses vi, not nano ;) |
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
Re: Warning to anyone using GNU nano from Extras!
the only topics worth reviving a three-year-dead-thread:
1) bsd vs gpl 2) vim vs emacs 3) conservative vs liberal 4) atheism vs theism 5) truth/beauty vs top/bottom personally, im for truth/beauty. who wants to have a go? |
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
Re: Warning to anyone using GNU nano from Extras!
oooh sounds like fun, which one now. ok.
leibniz gave us calculus so we wouldnt need to scratch pictures in the sand! |
Re: Warning to anyone using GNU nano from Extras!
Quote:
P.S. I don't demand any deletion (ignore the flag please). I've just said what I think about it and that's enough. Quote:
|
Re: Warning to anyone using GNU nano from Extras!
kate is better than gedit,
|
Re: Warning to anyone using GNU nano from Extras!
editor wars are generally useless because everyone who fights them already knows theyre right. the problem is that the two sides are usually arguing over COMPLETELY DIFFERENT THINGS.
which-editor-is-objectively-the-best VS preferences-are-always-subjective the latter is usually the camp saying STOP WITH THE PREACHING AND JUST LET ME LIVE MY LIFE, while the former says OBJECTIVE REALITY! IT EXISTS! YOU LIVE THERE! USE VIM, DAMNIT! being right doesnt always make you right... |
Re: Warning to anyone using GNU nano from Extras!
Guys, relax. We all know the truly correct way to text edit is by manually opening up your storage media and using tools of microscopic precision to flip the relevant bits.
|
Re: Warning to anyone using GNU nano from Extras!
hah! amateurs. real men use subsonic chanting to make subtle alterations in cosmic radiation, probabilistically degrading the hard drive over periods of thousands of years.
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
FFS, my comment was intended as a joke - y'know - humor? Admittedly it wasn't one of my best and it wasn't exactly side-splittingly funny but if you have any experience of IT you'd know that the argument over which text editor is better is older than punch cards. You really think I was trying to force my personal preference of text editor "down everyone's throat"?! I really don't give a monkey's arse what editor you use. It's up to you. And do you really think that some newcomer or passer-by is going to come across this thread and then decide that the whole board isn't suitable for them just because someone dared to make a joke about f**king text editors?!? By the way, I'm stuggling to understand what was sexist and discriminatory about HtheB's comment? Well, that's all from me. Until the next troll revives another ancient thread.... |
Re: Warning to anyone using GNU nano from Extras!
1 Attachment(s)
Well, just to bring this thread back on-topic. Find attached the latest version of nano (version 2.2.6) . It will use /etc/nanorc (--enable-nanorc), but just in case I compiled it with --disable-wrapping-as-root.
Just unzip and place the binary in /usr/local/bin (or wherever you like). |
Re: Warning to anyone using GNU nano from Extras!
Quote:
Also, emacs is the one true editor. And real men don't use "⊆". ;) |
Re: Warning to anyone using GNU nano from Extras!
Quote:
http://imgs.xkcd.com/comics/newton_and_leibniz.png |
Re: Warning to anyone using GNU nano from Extras!
thanks! i was starting to think no one was going to take the bait.
|
All times are GMT. The time now is 13:51. |
vBulletin® Version 3.8.8