Live data from Hacker News

GNU nano is my editor of choice

ariadne.space

201–210 of 236 posts

Re: GNU nano is my editor of choice

#201
post #37
post #6

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 snobbe…

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 ho…

> 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

#202

So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…

The advantage is you don't become dependent on an IDE. Ever seen someone who can't write anything without all the IDE aids to fill in code for them?

I'm not sure I agree on the inherent value of being able to work without an IDE. If that's what you value more power to you, but that's mostly personal preference.

Re: GNU nano is my editor of choice

#204

>Hopefully this post demonstrates that nano is a quite capable editor in its own right. This post showed how to add a slightly enhanced minibar, remove the help and add syntax highlighting. It would be more important for me how to quickly navigate text.

you can also quickly navigate text.

Yeah. But he didn't show that.

Re: GNU nano is my editor of choice

#205

Earlier quoted context omitted.

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

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.

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

#206

Earlier quoted context omitted.

Its not snobbery if it is better

that’s literally what snobbery is

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

#207

So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…

> I can see that there's not much difference between an ide and editor for new languages but why do people prefer text editing and prioritize typing speed where IDEs exist? That's not why I use a text editor (Geany most often). I find the IDE to be complex and to bring on complexity. If I'm using a text editor the project has to remain simple. The best analogy I have was when I used Slackware. Ubuntu users would laug…

That's fine if you're the one architecting the code, but when you move to a legacy other project with 100s of thousands of lines of codes and many, many files that doesn't work out so well because you're usually only deciding on a small part of the code.

Re: GNU nano is my editor of choice

#208
post #10

nano was my cli editor of choice because I was overwhelmed by vim. For years I felt subpar and thought that I should learn using vim. I'm using vim for some years now but I don't really make much use of it's features, maybe an occasional cut and paste, which probably can easily be done with nano too.

I was shoved in the pool with vim, I don't think it took me more than a couple days to get proficient with it and by the end of the week I didn't want to use anything else. Of course I had a fairly large coding project that I was working on. Of course I'm still learning little bits here and there :)

Re: GNU nano is my editor of choice

#209
post #202

Earlier quoted context omitted.

The advantage is you don't become dependent on an IDE. Ever seen someone who can't write anything without all the IDE aids to fill in code for them?

I'm not sure I agree on the inherent value of being able to work without an IDE. If that's what you value more power to you, but that's mostly personal preference.

Its not personal preference, because using an IDE should improve your productivity. It's like saying that digging a hole with your hands vs using a shovel is personal preference.

Re: GNU nano is my editor of choice

#210

> The vim vs emacs flame war I doubt that there is any ongoing vim vs. emacs flamewar. Most people are probably arguing about VSCode vs. JetBrains these days. My impression as an Emacs user is that if someone says they use Vim, I think "hey, one of us". (nano I guess falls into that category, but I bet nano users are missing out on some timesaving innovations from the last few years, and nothing frustrates me more th…

Oooh, let me start one then!

https://imgur.com/a/VjrUjBI

Post reply on HN