News for hackers. Stuff that matters.
Re:GNU nano is my editor of choice by ctur on Friday August 13, 2021 @05:52PM (#28175021)
The thesis of this post is roughly that nano, when configured, is enough of an editor for the author. Which is totally fine! People should be happy with their tools and not feel pressured by popularity to use what others use (vim, emacs being prime competitors in this case).

Alas, nano (and pico before it) have a certain stigma among more "experienced" Unix users that more or less boils down to gatekeeping and snobbery. Which is a shame.

That said... it is worth considering that learning tools like editors is an investment in one's self and pushing through preference to genuinely try to use what others find value in can, if nothing else, help you better understand what you value and adjust your tooling to fit (much like the author adjusted Nano to be more like vim).

That's a pretty nuanced distinction though and I am glad that the author feels comfortable owning their preference and not feeling pressured by peers to conform to more "acceptable" choices while still having tried and learned from them.

Re:GNU nano is my editor of choice by dijit on Friday August 13, 2021 @06:07PM (#28175219)
The thing about that “snobbery and gate keeping” is that it’s not at all that.

Maybe not everyone’s experience mimics mine but I felt like people looked down at me a bit when I was 16 for using nano on the command line.

But, and here’s the kicker, if I hadnt been pushed into vim I would not be nearly as productive now.

There have been countless times in my career as a sysadmin/devops/SRE where I’ve been stuck with horrible latency to machines half a world away (or, a few miles away but the network is crappy) and being able to send just a few keystrokes and get a lot of power out of it is helpful.

That’s not counting all the “repeat” patterns or complex search and replace.

I remember still when I got my first job as a junior sysadmin, I spent a really long time logging in to each machine, updating a config file, logging out then going to the next one.

I didn’t need to be told that “ssh and nano is fine”, I needed to be told “there are better tools that you should invest in learning, because they will repay you back thousandfold”.

What I thought were people looking down on me were in fact people looking at me with hopeless pity, because I fought the idea of learning vim.

Re:GNU nano is my editor of choice by crazygringo on Friday August 13, 2021 @06:43PM (#28175710)
> What I thought were people looking down on me were in fact people looking at me with hopeless pity

Or maybe they actually were looking down on you. When we feel bad in response to someone else, we're not usually misinterpreting the emotional cues.

It's not just what they say -- it's the way they say it.

Which is why the term "constructive criticism" exists. If you want to help them, then make them feel good by expanding their knowledge. But support them in their own choices and autonomy.

Re:GNU nano is my editor of choice by ImprovedSilence on Friday August 13, 2021 @09:45PM (#28177046)
>> But support them in their own choices and autonomy.

I mean yeah, sorta, sometimes. But other times u get back that vibe of “I just don’t care to learn something new, I’d rather do the bare minimum and I’m not really hungry to learn new things”. And recognizing the presence of this attitude is what causes the looking down upon.

Re:GNU nano is my editor of choice by edoceo on Friday August 13, 2021 @06:45PM (#28175733)
Have you tried...

Vs

What you should do is...

Re:GNU nano is my editor of choice by yissp on Friday August 13, 2021 @07:02PM (#28175896)
vs "lol use a real editor n00b"
Re:GNU nano is my editor of choice by ineedasername on Friday August 13, 2021 @08:19PM (#28176488)
Real developers only use cat >> <file> to edit, and start from scratch if they make a mistake.
Re:GNU nano is my editor of choice by mmastrac on Friday August 13, 2021 @08:46PM (#28176687)
That's basically edlin
Re:GNU nano is my editor of choice by hulug on Friday August 13, 2021 @10:21PM (#28177245)
In Plan 9 the terminal has something called "hold mode" which lets you do multi-line editing in that situation.
Re:GNU nano is my editor of choice by tuatoru on Friday August 13, 2021 @11:39PM (#28177640)
I guess I'm imaginary then, because I use sed -i to fix mistakes.
Re:GNU nano is my editor of choice by ineedasername on Saturday August 14, 2021 @01:17AM (#28178209)
I don't know if they're taught these days-- they weren't when I was in school-- but sed & awk are two tools I'd recommend to pretty much everyone.

I remember stumbling on to them in my first job and thinking an very much appreciating their power over having to write a small program to iterate through an arbitrary # of files to do something... and another small program if I wanted to do something slightly different, etc.

Re:GNU nano is my editor of choice by ineedasername on Saturday August 14, 2021 @01:24AM (#28178256)
If numbers can be imaginary, why not people? Many imaginary numbers are extremely useful, so there's no reason you can't lead a perfectly productive career as an imaginary person.
Re:GNU nano is my editor of choice by CUViper on Friday August 13, 2021 @11:49PM (#28177705)
Or a magnetized needle, or a butterfly...

https://xkcd.com/378/

Re:GNU nano is my editor of choice by ineedasername on Saturday August 14, 2021 @01:20AM (#28178230)
Wow, it seems I wasn't thinking low-level enough. I'll have to remember that emacs macro. If I ever get around to learning emacs.
Re:GNU nano is my editor of choice by 2muchcoffeeman on Friday August 13, 2021 @06:16PM (#28175337)
Maybe not everyone’s experience mimics mine but I felt like people looked down at me a bit when I was 16 for using nano on the command line. … What I thought were people looking down on me were in fact people looking at me with hopeless pity, because I fought the idea of learning vim.

People need to check how they encourage other people or promote things. You probably weren’t wrong about feeling looked down upon. Even if they really thought you would benefit.

Re:GNU nano is my editor of choice by umvi on Friday August 13, 2021 @10:11PM (#28177183)
> Maybe not everyone’s experience mimics mine but I felt like people looked down at me a bit when I was 16 for using nano on the command line.

Just say "nano is Linus Torvald's editor of choice" (which is true and will instantly shut down the debate)

Re:GNU nano is my editor of choice by rascul on Saturday August 14, 2021 @12:45AM (#28177999)
He said he might switch to nano. It's not currently his editor of choice (unless there's something more recent). If I recall correctly he has been using uEmacs/PK (https://github.com/torvalds/uemacs).

> I really need to switch over to something that is actually maintained and does utf-8 properly. Probably 'nano'.

https://www.tag1consulting.com/blog/interview-linus-torvalds...

Re:GNU nano is my editor of choice by umvi on Saturday August 14, 2021 @03:32PM (#28183351)
Ah, my mistake, you are right. Still a heck of an endorsement coming from him.
Re:GNU nano is my editor of choice by ghaff on Friday August 13, 2021 @06:48PM (#28175766)
It also depends what you use an editor for. Back when was doing more programming, I used something more powerful for the DOS environment--yes this was a while back.

I tend to use nano because I'm mostly making changes to config files and the like so I mostly want simple.

Re:GNU nano is my editor of choice by LargoLasskhyfv on Saturday August 14, 2021 @08:33AM (#28180140)
You know? One could also use mcedit, the editor built into midnight commander, via its integrated remote-fs ability.

Personally I look with pity at people who invest in cargo-culting the idiosyncrasies of systems from ancient times which simply don't apply anymore.

[0] https://en.wikipedia.org/wiki/Midnight_Commander

[1] https://man.archlinux.org/man/mcedit.1

Re:GNU nano is my editor of choice by dijit on Saturday August 14, 2021 @09:21AM (#28180395)
Requires learning midnight commander and how to connect it to remote hosts.

But the correct answer is ansible or it’s ilk- not being told that managing things one by one is “fine”.

Or like in nano, relegating oneself to managing files character by character.

Re:GNU nano is my editor of choice by kazinator on Saturday August 14, 2021 @02:25AM (#28178522)
> But, and here’s the kicker, if I hadnt been pushed into vim I would not be nearly as productive now.

It's interesting how the winds have changed toward Vim advocacy in a quarter century or so.

I switched to Vim around 1994, amidst a definitely anti-vi climate. In the university environment, almost nobody used vi. I remember nothing but vi trash talk.

The computing environment was proprietary Unix without a whole lot of freeware at all. Free Unix was just beginning to rise in the word. Only in the freeware world surrounding the Linux kernel and GNU utilities did I begin to discover alternative programs like Vim, still far from any sort of mainstream at that time.

I saw all this trash talking as weakness; by making fun of trivialities like the command sequence to get out of a program, you're just showing you're a moron. I looked into it and found it wasn't difficult at all.

Until then, all editors I ever used were fundamentally modeless: type characters to insert. I was curious about what it's like to use the modal editor after training oneself in its use.

I was quite pleasantly surprised; the naysayers were bigger morons than I thought. There are all these useful commands that can be touch-typed without any modifier keys!

Taking every key that produces a printable character and turning it into a command which inserts that character is an incredibly ill-considered decision. I mean, the machine can do anything you want, and you're insisting that it behave like a typewriter.

Because the computer/terminal keyboard traces its inspiration to the ancient typewriter, whose keys are mechanically linked to hammers that produce the characters those keys are labeled with, it must be so in a computer's editing program also. That is parochial thinking.

I don't understand how someone can go from, say, playing a game of Tetris where the unmodified keys ijkl control the falling pieces, to editing text, and suddenly insist that in this editing context, it must be that ijkl simply insert their image into the buffer. Like keys being commands is just something for games; editing is typewriter-like, so we simulate a typewriter, end of story.

Moreover, to be so vehement about this, so dead-set against the idea that an editor might be driven somewhat like a Tetris game, so as to not even give it a chance, in spite of relying on editing for enough years to become a programmer.

Re:GNU nano is my editor of choice by BrandoElFollito on Sunday August 15, 2021 @02:20AM (#28186625)
> by making fun of trivialities like the command sequence to get out of a program, you're just showing you're a moron.

I still laugh at the word vi being the translation from Aztec of "how do I get out of this shit"

For context, I started with Linux in 1993, by making changes to the kernel. Vi was the editor of choice and I took it like I do with cultures of the countries I visit: I keep the comments to myself.

So I suffered in silence until I discovered joe (an editor based on Wordpress key bindings) and that was a great change.

I know 3 or 4 commands in vi, enough to make the changes five times a year when I have to use it somewhere

Re:GNU nano is my editor of choice by davmar on Friday August 13, 2021 @06:21PM (#28175402)
+1 for vim. I also spent a lot of time resisting it. Now it's all I use because it's just so much better.
Re:GNU nano is my editor of choice by linuxftw on Friday August 13, 2021 @08:03PM (#28176396)
When I was coming up, Solaris was as popular as Linux at the time. There was no option to install nano on production machines for Solaris. It was vi or find a new job.
Re:GNU nano is my editor of choice by elzbardico on Saturday August 14, 2021 @12:08AM (#28177814)
You could install emacs. But no, you’re an infidel!
Re:GNU nano is my editor of choice by KronisLV on Friday August 13, 2021 @07:08PM (#28175950)
> Alas, nano (and pico before it) have a certain stigma among more "experienced" Unix users that more or less boils down to gatekeeping and snobbery.

You know, after a number of years in the industry, I've largely stopped caring about what others think and wouldn't lose my sleep over it - the best tools are the ones that you're familiar with and that solve your problems.

For me, that's using nano, for someone else that could be vim. I might want to use some of the JetBrains IDEs, use something like Java liberally because of its verbosity and not even scoff at older software like Lazarus/FreePascal in some circumstances (their approach to GUI is still superior to most modern ones). For someone else that could be Visual Studio Code, a language like Python, or generally looking in the direction of the bleeding edge of languages, such as Rust.

As long as you reach your goals, i think it's perfectly reasonable to dismiss peer pressure or criticism, unless it's constructive (like the person who suggested that vim is better for replace operations over slow connections, which was a good point but also something I've never needed).

That said, the author's approach to customizing nano made me appreciate how nice having proper configuration files and options within them is!

Re:GNU nano is my editor of choice by ineedasername on Friday August 13, 2021 @08:23PM (#28176527)
Well, I'd put some limits on this. If a coworker cobbled together something that still let them program by punch card then I'd 1) probably be frustrated with their level of output and 2) impressed at the setup. 3) asking for their extra set of eyes on my own code because if they had the patience for punch cards they would probably be better than me at catching errors.
Re:GNU nano is my editor of choice by KronisLV on Saturday August 14, 2021 @09:44AM (#28180555)
As funny as the mental image is, that's a fair point. Clearly pick whatever suits the needs of the team, if you're developing something together with others.

But just in general, don't scoff at technologies just because they're not currently popular: there are a few problems out there that can be fixed really nicely within something like Prolog, Lisp or another seemingly dated language. Admittedly, nowadays there's perhaps too much focus towards using walled gardens, as opposed to piping some data through a few Bash scripts or maybe embedding Lua in a larger executable for some more dynamic functionality.

Of course, those are just some overly general examples, but getting discouraged from a good solution just due to peer pressure isn't exactly optimal. Having technologies that don't have good documentation due to never having been popular in the first place, or that are difficult to run or utilize nowadays, however, is a different story entirely.

Where punch cards would fit into all of that, however, i'm not sure as of yet. :)

Re:GNU nano is my editor of choice by rascul on Saturday August 14, 2021 @12:48AM (#28178022)
I would probably be wondering where the machine is kept that reads punch cards. And how to use it. And how do I make punch cards. Then, after all that, your list seems like it would suffice.
Re:GNU nano is my editor of choice by ineedasername on Saturday August 14, 2021 @02:08AM (#28178468)
where the machine is kept that reads punch cards

In my mind I envisioned in on their desk in the next office over that looked like something out of the movie "Brazil" and machines on the desks during the Central Services scene [0]

[0] https://www.youtube.com/watch?v=V-yXL-LDMyg

Re:GNU nano is my editor of choice by relax88 on Friday August 13, 2021 @06:01PM (#28175144)
It’s not really gatekeeping or snobbery to say that knowing vim is more useful simply because I can log into any Linux machine on the planet and edit a text file without having to install an editor.
Re:GNU nano is my editor of choice by aroman on Friday August 13, 2021 @06:05PM (#28175200)
They probably meant snobbery that vim is superior because it's more capable, not because it's more ubiquitous. Nano is also very widely installed, so the latter point isn't even particularly true.
Re:GNU nano is my editor of choice by brundolf on Friday August 13, 2021 @06:09PM (#28175251)
Every Unix machine (Mac or Linux) that I've ever tried to use nano on has had it preinstalled. I'm sure not all of them have it preinstalled, but it's common at least in mainstream distros
Re:GNU nano is my editor of choice by klyrs on Friday August 13, 2021 @06:24PM (#28175446)
In the late aughts, I found myself at the keyboard of a Solaris system that only had ed. I was there to get the network configured and it didn't have an optical drive, so there was no way but forward.

More recently, I've found myself inside a container which didn't have any editors. I got the job done with echo, head and tail. Delightful.

Re:GNU nano is my editor of choice by trey-jones on Friday August 13, 2021 @06:38PM (#28175641)
Removing vi from your container image is rude, IMO.
Re:GNU nano is my editor of choice by LAC-Tech on Saturday August 14, 2021 @01:31AM (#28178294)
How do you even get a container like that working?

Even alpine based images have a version of vi (it comes with busybox)

Re:GNU nano is my editor of choice by relax88 on Friday August 13, 2021 @06:15PM (#28175326)
If you’ve never logged into a Linux machine without nano installed, then you probably haven’t logged into that many flavours of Linux machine.

I agree this is pretty much a non issue for the average developer, but those of us who work on network infrastructure, as red-team hackers, or do any work on embedded systems can attest to how much of a pain it would be to not know how to use vi/vim.

Re:GNU nano is my editor of choice by koolba on Friday August 13, 2021 @07:04PM (#28175912)
This is even more common in the world of containers where “nice to have just for debugging” get omitted.

You haven’t lived till you have to edit using only sed.

Re:GNU nano is my editor of choice by KronisLV on Friday August 13, 2021 @07:20PM (#28176061)
There is definitely something to be said about having minimalistic container images for security and smaller sizes...

But not having a basic text editor that is probably a few hundred KB feels a bit silly, especially given how many environment dependencies usually get packaged into containers anyways.

That's like not including any sort of a shell in your container and wondering why people are having troubles with debugging.

Personally, i think that just basing container images on something like Alpine, Debian or even Ubuntu images is good enough because those are stripped down enough already for the most part.

Re:GNU nano is my editor of choice by koolba on Friday August 13, 2021 @10:50PM (#28177396)
Of course you add a sane editor after it happens. But that first time…
Re:GNU nano is my editor of choice by trissylegs on Friday August 13, 2021 @07:37PM (#28176208)
I did build a arch Linux install using cat <<EOF, grep and sed. But golly it gets tedious
Re:GNU nano is my editor of choice by relax88 on Friday August 13, 2021 @09:00PM (#28176766)
Sounds like pain, but also a means to getting better at sed.
Re:GNU nano is my editor of choice by bakul on Friday August 13, 2021 @10:16PM (#28177206)
ed.
Re:GNU nano is my editor of choice by correct_horse on Friday August 13, 2021 @06:27PM (#28175494)
Most non-copyleft (permissive free software and proprietary software) tries to stay as far away as possible from the GPLv3 license. Because of this, macOS ships gnu nano 2.0.6 whereas the latest is 5.8. FreeBSD doesn't even have nano installed by default.
Re:GNU nano is my editor of choice by vermaden on Saturday August 14, 2021 @04:12AM (#28178984)
FreeBSD has `/usr/bin/ee` (Easy Editor) so it does not need GNU Nano. But you can install GNU Nano with:

    # pkg install nano
Re:GNU nano is my editor of choice by rcoveson on Friday August 13, 2021 @07:16PM (#28176027)
Here's a good example: The article's author is actually the security team chair of a lightweight Linux distro called Alpine Linux. A base installation of Alpine includes BusyBox vi but no nano.
Re:GNU nano is my editor of choice by babypuncher on Friday August 13, 2021 @06:53PM (#28175809)
I've never worked with distros targeting enterprise, but I've never encountered a distro that didn't include nano.

Even if Vim is "better", I think it's important for all distros to include a text editor that is easy to use out of the box, and nano fits that bill perfectly.

Re:GNU nano is my editor of choice by KronisLV on Friday August 13, 2021 @07:15PM (#28176015)
In my experience, the DEB distributions (Debian, Ubuntu, ...) usually have nano by default, whereas the RPM ones (RHEL, CentOS, Oracle Linux, ...) don't.

That said, i immensely enjoy how small the install size for nano is and how there's no actual work that you need to do to get started with it (unless you need/want customization, like the author of the original article).

Re:GNU nano is my editor of choice by ineedasername on Friday August 13, 2021 @08:28PM (#28176561)
That said, i immensely enjoy how small the install size for nano

I used to install lynx web browser for the same reason, especially because at the time it was the age of countless popups and swf everywhere. I should check to see how it is these days, but I stopped using it when webdev made many pages unusable in it.

Re:GNU nano is my editor of choice by snowwrestler on Friday August 13, 2021 @08:18PM (#28176481)
When I first started working in Linux, it was in Centos and RHEL and I used nano, since it was already installed and easier to understand than vim.

That was about a decade ago though, maybe RHEL has removed nano since then.

Re:GNU nano is my editor of choice by bluedino on Friday August 13, 2021 @06:31PM (#28175550)
Except when it's vi and casual vim users can't figure out why nothing works
Re:GNU nano is my editor of choice by trey-jones on Friday August 13, 2021 @06:37PM (#28175628)
Aren't casual vim users really vi users? I use emacs primarily but years ago created an extremely minimal (~20 lines) .vimrc to be installed by default on every server I work on. Some color, maybe indentation, I don't even know because I usually just use Emacs/TRAMP these days, but I'm nearly 100% sure that every config there works in vi. I would consider myself a casual vim/vi user in that I don't know the differences.
Re:GNU nano is my editor of choice by hn8788 on Friday August 13, 2021 @06:44PM (#28175722)
I may be misremembering, but the biggest differences I remember between vi and vim as a semi-casual user is vi defaults to not supporting arrow keys, and doesn't tell you the mode it's in.
Re:GNU nano is my editor of choice by wahern on Friday August 13, 2021 @07:40PM (#28176219)
I can't remember the last time I used vi and was unable to use arrow keys. That includes typical Linux installations (Vim, Busybox), Solaris (default is Vim, oddly, but I just confirmed arrow keys work in /usr/xpg4/bin/vi), and various BSDs (nvi).

I'm not a power vi user, though. I usually use JOE (thanks/blame to '90s Slackware education), but occasionally vi is more convenient. It wouldn't be nearly as convenient without the arrow keys as I never learned proper typing technique.

Re:GNU nano is my editor of choice by bluedino on Friday August 13, 2021 @09:03PM (#28176785)
Raspbian, for example included vim-tiny
Re:GNU nano is my editor of choice by citrin_ru on Saturday August 14, 2021 @11:54AM (#28181628)
Just tested FreeBSD vi and BusyBox vi - arrows work in both, but I rarely use them (only in insert mode), so can may not notice if they are not supported somewhere. The biggest difference for me is lack of visual mode in vi.
Re:GNU nano is my editor of choice by emef on Friday August 13, 2021 @06:04PM (#28175174)
this is less true these days w/ slim docker images that don't include any editors by default
Re:GNU nano is my editor of choice by dijit on Friday August 13, 2021 @06:10PM (#28175268)
Doesn’t POSIX designate vi as a requirement?

https://ieeexplore.ieee.org/document/6880751

Re:GNU nano is my editor of choice by wahern on Friday August 13, 2021 @08:13PM (#28176457)
vi is specified by POSIX, but (at least currently) it's marked as a User Portability Utilities (UP) extension, which is optional. It is required for XSI conformance, which mandates other extensions like C-Language Development Utilities (CD). But XSI itself is mostly legacy SysV stuff; the more widely supported parts were rolled into POSIX proper and either made a requirement or grouped into their own optional extension.

In general, most utilities and functions primarily used interactively are optional in POSIX.

Re:GNU nano is my editor of choice by privacyking on Friday August 13, 2021 @06:55PM (#28175836)
Not sure, but I've logged into many terminals before and not one of them didn't have vi installed. Have found plenty without nano or vim though.
Re:GNU nano is my editor of choice by yakubin on Friday August 13, 2021 @06:11PM (#28175291)
POSIX doesn't say anything about containers.
Re:GNU nano is my editor of choice by dijit on Friday August 13, 2021 @06:14PM (#28175304)
But your containers may be a bit weird if their environment isn’t POSIX.

Like if you removed the “cd” command or the ability to read environment variables. “Containers” is any definition you want, but surely they’re built to some standard.

PS: I do make “from scratch” images a lot, I know you don’t “need” to have any utilities at all, but I’m fairly certain that a lot of software expects the “OS” to be POSIX.

Re:GNU nano is my editor of choice by yakubin on Friday August 13, 2021 @06:19PM (#28175380)
I don't know what you mean. Linux containers don't contain operating systems. They contain processes. POSIX describes operating systems.

Every Linux process can read environment variables. They are contained in its address space. "cd" is a shell built-in. When there is no shell, there is no "cd". Not providing access to a shell sounds like great security practice tbh. Your applications shouldn't be using it anyway (they should create new processes directly).

Re:GNU nano is my editor of choice by messe on Friday August 13, 2021 @06:38PM (#28175645)
This is just being obtuse for the sake of it. Yes, technically nothing in the notion of a container necessitates that; containers are just a form of namespacing. Have a gold star for understanding that. But the fact is: the vast majority of containers in use are going to be based on some minimal OS image, which is what the commenter was referring to.
Re:GNU nano is my editor of choice by jrockway on Friday August 13, 2021 @08:22PM (#28176516)
People use minimal OS images when they absolutely have to, but the ideal case is just your binary sitting there all alone. (Sometimes you need the tzdata files, SSL certificates, and other support files. But rarely a shell.)
Re:GNU nano is my editor of choice by messe on Friday August 13, 2021 @08:36PM (#28176618)
I agree that the ideal case is just a single binary with minimal supporting data, but people using OS images is certainly the norm not the exception. To suggest otherwise is ludicrous.
Re:GNU nano is my editor of choice by yissp on Friday August 13, 2021 @07:08PM (#28175953)
Most Linux distros aren't 100% posix compliant as far as I know.
Re:GNU nano is my editor of choice by rascul on Saturday August 14, 2021 @01:02AM (#28178114)
Looks like EulerOS is the only one certified (which isn't the same as compliant).

https://www.opengroup.org/openbrand/register/brand3622.htm

Re:GNU nano is my editor of choice by sdljfjafsd on Friday August 13, 2021 @07:20PM (#28176060)
Despite having 7 years of back end experience, I've never learned vim. Is there any other editor that hits these requirement (being able to login to any server to edit text) or does every server engineer need to learn vim?

(I mostly use a mix of sublime, intellij, and vscode to edit text)

Re:GNU nano is my editor of choice by hulug on Friday August 13, 2021 @10:27PM (#28177275)
ed(1)
Re:GNU nano is my editor of choice by ineedasername on Friday August 13, 2021 @08:25PM (#28176536)
That's probably the #1 reason to learn the bare basics of vim even if nano was a daily driver.
Re:GNU nano is my editor of choice by shapefrog on Friday August 13, 2021 @06:58PM (#28175861)
Its not snobbery if it is better
Re:GNU nano is my editor of choice by jakelazaroff on Friday August 13, 2021 @07:07PM (#28175945)
that’s literally what snobbery is
Re:GNU nano is my editor of choice by shapefrog on Saturday August 14, 2021 @05:22AM (#28179304)
snobbery: the character or quality of being a snob.

snob: a person who believes that their tastes in a particular area are superior to those of other people.

Re:GNU nano is my editor of choice by loudtieblahblah on Saturday August 14, 2021 @01:30PM (#28182423)
But Vim is superior in many ways.

Nano is superior in that its easier to use. But it's certainly no where near as powerful as Vim or emacs.

Re:GNU nano is my editor of choice by IncRnd on Saturday August 14, 2021 @02:12PM (#28182771)
That's funny!
Re:GNU nano is my editor of choice by hkt on Friday August 13, 2021 @06:04PM (#28175172)
Is installing an editor really such a hardship?
Re:GNU nano is my editor of choice by yakubin on Friday August 13, 2021 @06:10PM (#28175270)
In "linux embedded", absolutely. You take what's there. At some point I even had a debugging session through TeamViewer connected to a Windows machine which had Terraterm open connected to serial port of a linux box. Unfortunately, there was a lot of spam on the serial port, so even using vi was impossible, because the screen got garbled pretty fast. So I printed the files with cat, worked out a set of sed commands to get those files to the desired state and typed them back in. Crazy. But real.

(Add to that communicating with a guy on-site over notepad.exe. Mr. Robot vibes.)

Re:GNU nano is my editor of choice by orthoxerox on Friday August 13, 2021 @06:42PM (#28175690)
Yes, because your sysadmins won't give you sudo, so you must scp a copy of nano into your home dir. Surprise, it's an AIX server running on Power, so your x86 nano won't run. Does building one from source count as hardship?
Re:GNU nano is my editor of choice by dllthomas on Friday August 13, 2021 @06:10PM (#28175261)
Usually not, sometimes very much so.
Re:GNU nano is my editor of choice by swiley on Friday August 13, 2021 @06:26PM (#28175471)
I'm glad for nano users because the popularity of their editor probably won't ever mean stuff that won't work with mine.
Re:GNU nano is my editor of choice by mraza007 on Friday August 13, 2021 @07:33PM (#28176162)
This is my favorite comment. You have stated facts which I totally agree with

Learning tools is an investment when you master tools you can achieve so much in short amount of time.

If a person knows his tools pretty well he can get work done faster and I have experienced this by learning vim and forcing my self to use it for writing code. It has improved my workflow significantly

Re:GNU nano is my editor of choice by shapefrog on Friday August 13, 2021 @06:56PM (#28175838)
I too was bullied from nano onto vi/vim. I still dont think I 'get it' but the brainwashing is complete, I cant even type the word nano into a terminal.

I too applaud the author for their bravery in coming out as a proud nano user, not that there is anything wrong with it.

[dead]
Re:GNU nano is my editor of choice by ineedasername on Friday August 13, 2021 @08:36PM (#28176620)
I will judge your ability to code by your preference of editor

If someone is turning out high quality code in what seems an awful choice of dev environment then I'd just shrug my shoulders and move on. I don't have the mental energy to work up disappointment or frustration at how another person might, counterintuitively, be just as productive using tools I don't like.

I think R is far superior to SPSS but really don't care if someone decides to use SPSS and produces quality analysis, especially if a lifetime of experience in it made them highly efficient in its use.

Re:GNU nano is my editor of choice by GekkePrutser on Friday August 13, 2021 @06:32PM (#28175567)
Many of the things you mention are absolutely in nano :) Like highlighting, jumping to a line, importing.. I don't have the time to do a point by point comparison but trying nano for 5 minutes doesn't equate knowing it, just like with vim.

I'm not big into coding anymore and nano is handy for my muscle memory, coming from DOS :) It's good enough for my purposes. Sure vim is more powerful but it's not as accessible to the casual user. It's a good tool for its job just like vim is. They're just different jobs.

Re:GNU nano is my editor of choice by ixfo on Friday August 13, 2021 @06:40PM (#28175672)
Absolutely. I use loads of those features including regexp in nano all the time and it works fantastically well. For me it's the fact that it's small (so available on nearly every platform) and the command interface is so quick. It's light, fast, and snappy to drive - no context "shifts" to get to commands, and I can do "power user stuff" with just a simple key shortcut _which is written on the screen so you can see it_ most of the time. It's easy, and that's worth more than a thousand vims. See also the success of Visual Studio Code.
Re:GNU nano is my editor of choice by brazzy on Friday August 13, 2021 @06:31PM (#28175555)
>And if you have an especially strong opinion, I'll consider you even more experienced, even if your strong opinion differs from mine; simply by virtue of having of strong opinion it means you likely have been using it for years and have found other tools inadequate for your skills.

If you really think strength of opinion indicates experience, then clearly you don't have a lot of experience with people...

Re:GNU nano is my editor of choice by accelbred on Friday August 13, 2021 @06:48PM (#28175760)
Jumping to line numbers can be done with mouse. Refactoring and search/replace can be either sed or grep and copy/paste. Filtering text through a command can be done in your shell. Nano has syntax highlighting. Importing from a file is copy and paste. Not sure when you really need column numbers. Split pane editing is tmux or multiple windows.

Now I'll take my customized and plugin-full neovim setup over that any day, but that does not mean a developer cannot be fully competent with nano. I've worked with large projects where I didn't have access to neovim or my setup and just zsh and vi were enough to get the job done. Having to use nano would have been more of an inconvenience but it would have not been in any way undoable. Understandably, a dev would be more productive with their preferred setup, but if a dev couldn't work without it, that would be a red flag.

Re:GNU nano is my editor of choice by techrat on Friday August 13, 2021 @06:32PM (#28175565)
> It's not gatekeeping,

> you bet I will judge your ability to code by your preference of editor,

FYI. That's called 'gatekeeping.'

Re:GNU nano is my editor of choice by trey-jones on Friday August 13, 2021 @06:43PM (#28175711)
It's kind of a misnomer then, isn't it? He's not preventing anybody from doing anything, just forming a preconception based on what I think a lot of people would agree is sound logic:

That on average, people whose first instinct is `nano` to edit a file in Linux have less experience than people whose first instinct is `vi(m)` (or, selfishly `emacs`).

Re:GNU nano is my editor of choice by techrat on Friday August 13, 2021 @06:55PM (#28175833)
https://www.urbandictionary.com/define.php?term=Gatekeeping

> When someone uses a hobby or interest as a means of elevating themselves above others to give oneself a sense of being superior transforming their passion or knowledge about a particular subject into an ugly tool of self-inflation.

The shoe fits.

First editor I used was vi/vim.

For years it was the only editor I could use. (My CS education and school server use predates Pine/Pico/Nano and later on, it was a long time before nano was an option on more restrictive/specialized machines)

I still prefer nano.

In the end, I don't give a fuck what you use as long as you can get the job done.

Passing judgement on what people prefer to use is the de-facto definition of 'gatekeeping.'

Re:GNU nano is my editor of choice by icehawk on Friday August 13, 2021 @07:26PM (#28176114)
The fact that you don't know that nano can jump to line numbers calls into question your judgement. (As can notepad.exe for the past two decades or so)
Re:GNU nano is my editor of choice by 908B64B197 on Friday August 13, 2021 @08:21PM (#28176510)
> The thesis of this post is roughly that nano, when configured, is enough of an editor for the author. Which is totally fine! People should be happy with their tools and not feel pressured by popularity to use what others use (vim, emacs being prime competitors in this case).

My advice to the author would be to give emacs an other shot. It can be configured to behave a lot like nano (and isn't modal), and runs in the terminal. But there's an ecosystem of plugins around it and has a lot of stuff that's built-in. But one day one of the journey it'll behave almost exactly as nano.

Re:GNU nano is my editor of choice by alpaca128 on Saturday August 14, 2021 @05:56PM (#28184256)
What's the point in making Emacs behave roughly like another editor when you can just use the original? Also, Emacs has about a million lines too much bloat for the target audience of Nano. Which is the one thing you can't fix by adding tons of plugins.