Nano has already supplanted the great EMacs and Vim as the most popular text editor of all linux distros, for though it has many omissions in functionality it scores over the older, more complete programs in two important respects. First, it is slightly simpler; and secondly it has the text "^ Exit" inscribed in highlighted text on its footer

EDIT : This sees to be going over some people's heads. It's a hitchiker's guide to the galaxy reference.

The Hitchhiker's Guide has already supplanted the great Encyclopaedia Galactica as the standard repository of all knowledge and wisdom, for though it has many omissions . . . it scores over the older, more pedestrian work in two important respects. First, it is slightly cheaper; and secondly it has the words DON'T PANIC inscribed in large friendly letters on its cover.

top 100 comments

sorted by: hot top controversial new old
[–] 144 points 3 months ago (18 children)

I like Nano; it lets me do what I need to do quickly, simply and efficiently.

  • source
  • hideshow 18 child comments
  • [–] 41 points 3 months ago* (15 children)

    That’s why nano gets used more than vi/vim. In the past, the majority of people using terminal text editors were geeks and developers. Now the majority of people using the terminal text editors are more often casual users who have no use for putting the time and effort to learn vi/vim, especially because they have no need for the extended functionality

  • source
  • parent
  • hideshow 15 child comments
  • [–] 7 points 3 months ago (14 children)

    I don't get you people. Proper copy/paste support is "extended functionality"? I beg to differ. This is basic functionality.

    And no, single line copy/paste as offered by nano, or copy and paste through the terminal is not proper copy/paste.

  • source
  • parent
  • hideshow 14 child comments
  • [–] 5 points 3 months ago* (last edited 3 months ago) (7 children)

    Sit down by the campfire my dear youngin’ and I’ll talk you tales of a terror myth called ASSEMBLY

    OOOOOooOOOOOooOOO!

    Machine language! Direct memory addressing! AAAAAaaaaa!

    MWAHAHAHAHAHAHAHAHA!!!!!

    Computers existed before the year 2000, you silly children…

  • source
  • parent
  • hideshow 7 child comments
  • [–] 7 points 3 months ago (6 children)

    Don't be silly, grandpa. Everyone knows assembly doesn't exist.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 3 months ago* (last edited 3 months ago) (5 children)

    https://demoscene.assembly.org

    My favorite when I was a kid was absolutely, and without a doubt Second Reality by Future Crew. Full screen 3-D object rendering at 30 frames a second on a 486SX/25 CPU without a graphics card. in 1993

    Future Crew, active in the early 90s, was a legendary group within the demoscene. They were acclaimed for their groundbreaking demos, like “Second Reality”, that demonstrated advanced programming, visual artistry, and music composition. These works set new standards for what was possible in real-time computer graphics, and they inspired countless artists and programmers around the world. Despite the group’s dissolution in 1994, Future Crew’s influence on the demoscene and the broader fields of graphics and game development is undeniable, and their legacy continues to inspire creativity in the digital world.

    Fucking legendary.

    And it fit on a floppy

    Edit: I remember my friend Nick brought back a copy of Second Reality from ASSEMBLY 93, an annual convention of assembly developers where they would show off their programming prowess with these demos. Me and my friends got to see it before it hit the BBSs and Usenet. So fresh, yo!

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 3 months ago (1 child)

    I remember seen it in 1993 or 1994 in a friend's PC with a Gravis Ultrasound. It was AMAZING. For comparison, the games of that year were almost all 16 bits platformers.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 months ago* (last edited 3 months ago)

    I think it took me over an hour to get my sound blaster pro configured just right

    Here’s another reference from the era,, let’s see if you get it:

    “Did you bring the pages?”

    It was from a game, but not a platformer

  • source
  • parent
  • [–] 2 points 3 months ago

    That's incredible work.

    And it makes me remember another gem of the period, Elite! I first played Elite Plus, but when I heard about the original, the magic of being able to navigate all those worlds in such a small format fired my imagination.

  • source
  • parent
  • [–] 5 points 3 months ago

    this functionality is only bloated and complicated for the person using a terminal a couple of times a year.

    i say that while looking like this when i see any editor but vim used:

    but i know my co-worker looks at me like this, because he knows he only ever uses vi:

  • source
  • parent
  • [–] 1 point 3 months ago

    That's true, if you had no GUI for an extended period, it'd be worth learning something that could do that. Although, other people are saying there's a way in nano.

    If you're using a GUI, and working in an emulator, who cares if it's not "proper"?

  • source
  • parent
  • [–] 1 point 3 months ago*

    Same, although I did wish I could like, just select text with my mouse properly, or move the cursor to a place by clicking there, delete blocks without cutting them, and/or remember the copy/paste/undo shortcuts...etc

  • source
  • parent
  • [–] 78 points 3 months ago* (3 children)

    Many were increasingly of the opinion that they’d all made a big mistake in making text editors in the first place. And some said that even making operating systems had been a bad move, and that no one should ever have built computers at all.

  • source
  • hideshow 3 child comments
  • [–] 51 points 3 months ago (1 child)

    I see Hitchhikers Guide to the Galaxy parody, I updoot

  • source
  • hideshow 1 child comment
  • [–] [S] 6 points 3 months ago

    If ind it quite funny that the majority of the posts are about the text editor and not about the blatant hitchhiker's guide reference to the point where I had to specify it in the OP and then the thread exploded after that point.

  • source
  • parent
  • [–] 34 points 3 months ago (12 children)

    It's there and it's easy. Most people don't use terminal text editors unless they are SSHing in a server, and they would only do that sporadically, so it makes no sense to become proficient in a complex text editor like vim or Emacs for that little use case.

    Sidenote: personally, I learned vim once, and used it extensively every day for two years. I stopped using it for one year and was back to square one. Now I use vscode for everything... Even when I'm using SSH, because vscode supports SSH

  • source
  • hideshow 12 child comments
  • [–] 6 points 3 months ago (3 children)

    Every editor "supports" SSH, you can mount files on a remote SSH server via SSHFS.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 9 points 3 months ago (2 children)

    And instead vscode supports SSH (without quotes), you can connect to an SSH host, and it will open files and folders on the host like it does locally. And if you open the integrated terminal it will run on the remote host. And it will forward the git login agent so you can commit or push with the credentials of your local machine. And it can forward ports from the remote.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 3 months ago* (1 child)

    Sure, but none of that is special in any way. That's just what SSH does already. If you like that to happen in your editor GUI, by all means, you do you.

    What I'm saying is not a single of those features is an accomplishment of vscode and you can do that with every editor you like, or even without any. I didn't want people to believe they'd need to switch to vscode to achieve any of that. That was my angle.

    I can't and I'm not going to comment on the integration or the workflow, if you're the audience for those kinda things, it's probably great, give vscode a try. It's probably obvious that I am not but hey, different strokes and all.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 3 months ago (3 children)

    It’s kind of sad that many people don’t use the shell / terminal anymore, especially as part of their regular development flow. There’s so much scripting and so many shell commands you can use that will do things you just can’t do in vscode. And having an editor like vi immediately available is part of that flow.

    For me, vim and the shell are my primary IDE. I rarely fire up vscode. But I guess I’m getting old. Still faster than the younger devs who mainly use vscode and then struggle when they are forced to use the command line due to whatever circumstance where vscode is not available or appropriate. Kind of makes me sad. Feels like a valuable skill is being lost.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 7 points 3 months ago

    Oh, I use the terminal a lot, it doesn't throw me off. When I can't have vscode (e.g. small openwrt devices) I can use vim. It's just plain easier to use vscode for editing files when I can

  • source
  • parent
  • [–] 1 point 3 months ago* (last edited 3 months ago)

    I used vim, vim based stuffs, spacemacs, jetbrains, netbeans, atom etc... Now I use mainly claude code, sometimes, rarely I also open vscode. Shame because I know a lot of shortcuts, but not needed.

  • source
  • parent
  • [–] 1 point 3 months ago (2 children)

    I use kate for almost everything. I can open and edit files over sftp, and it has a terminal like vscode as well. I should try vscode again, it's been a while.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 3 months ago (1 child)

    Konqueror was the goat. Split screens. Browse the web. Browse remote directories. Browse local directories. I was sad when it went away.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 3 months ago

    Yeah! I used to use it as my default browser back when it was viable to do so. Dolphin can do all of that pretty well except browse the web. I do kinda wish there was an excellent KDE web browser. Falkon might be nice, but I'd really need a way to integrate with Bitwarden/Vaultwarden.

  • source
  • parent
  • [–] 30 points 3 months ago (3 children)

    I'm ashamed to admit that, despite having read Hitchhiker's Guide to the Galaxy several times, my Vim elitist mindset made me miss the reference.

    Sometimes you need a real good slice of humble pie to remember what's important in life.

  • source
  • hideshow 3 child comments
  • [–] 45 points 3 months ago (1 child)

    People don’t have to look up “how to exit nano”

  • source
  • hideshow 1 child comment
  • [–] 21 points 3 months ago (4 children)

    I've wanted to move elsewhere for a long time, thing is I don't use nano for programming, I use it for config files. For programming I use an IDE, and every time I've tried leaving my IDE for emacs with a language server I find I just can't be bothered to set it up and learn it and make the move. Maybe because while I have some gripes with my current setup...they're very minor

  • source
  • hideshow 4 child comments
  • [–] 3 points 3 months ago* (last edited 3 months ago) (3 children)

    People program in things like nano? Wow. I want to learn that. I also have only really used them for configs, terminal profiles, …

    Can they offer autocomplete and syntax highlighting like vscode can, extendable for different languages and whatnot?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 3 months ago

    nano has supported syntax highlighting for a good long while, and for the Debian package at least, comes with a bunch of predefined languages in /usr/share/nano/*.nanorc.

    I wouldn't recommend it for large projects, but I've created and edited shell and Perl scripts with it plenty of times.

  • source
  • parent
  • [–] 3 points 3 months ago

    I've programmed in notepad. Not often or very much, because even though I operated in a Windows environment, I didn't hate myself, but simple edits or creating small files was possible if you knew what you were doing. More could be done too, if you wanted to pretend you were a caveman programmer.

  • source
  • parent
  • [–] 20 points 3 months ago (5 children)

    I've used Vim, NeoVim, Micro, mg(1), JOE, and even MS Edit (both the original DOS version and the recent Rust clone). No matter how complex and tailored I wrote my config, though, the features I actually used were included in GNU nano and/or my command shell without any of the bugs, bloat, learning curve, or slop.

    Using it as my default just makes sense.

  • source
  • hideshow 5 child comments
  • [+] 11 points 3 months ago (3 children)
  • [–] 19 points 3 months ago

    oh no, not again.

  • source
  • [–] 16 points 3 months ago

    Many were increasingly of the opinion that they'd all made a big mistake moving away from 'ed' in the first place, and some said that even 'ed' had been a bad move, and that no-one should ever have left punch cards.

  • source
  • [–] 16 points 3 months ago (4 children)

    ed is the standard text editor

  • source
  • hideshow 4 child comments
  • [–] 13 points 3 months ago (2 children)

    I shall prematurely end this comment chain with the obligatory xkcd. Yes, you've seen it before, and you will see it again.

    real programmers

  • source
  • parent
  • hideshow 2 child comments
  • [–] 31 points 3 months ago

    It is preinstalled and does what it needs to do. What else can I ask for?

  • source
  • [–] 15 points 3 months ago

    Same reason people use notepad on windows. It's already installed on almost every distro

  • source
  • [+] 14 points 3 months ago (1 child)
  • [–] 13 points 3 months ago

    I'm in the "been working with Linux since the 90s" gang so I call vim vi and nano pico and when I started there was a coolness factor to be considered. I was incredibly uncool so I used whatever I wanted, including pico - I mean you used pine for email back in the day and the interface was nearly identical, so whatever.

    But I did want to be at least a tiny bit cooler, so I learned vi in a fairly rudimentary fashion. I can edit, jump, delete, search, replace, copy and paste - oh, and I can exit. I've spent so much time using vi, that my brain doesn't even have to think about exiting, not even whether I want to write or not. It just happens like second nature. It's actually gotten to where nano seems unduly burdensome to me.

    But really, I prefer an IDE for programming. CLI editors will always be for configuration files and shell scripts to me.

  • source
  • [–] 12 points 3 months ago* (2 children)

    Best local simple terminal text editor is micro.

  • source
  • hideshow 2 child comments
  • [–] 22 points 3 months ago (6 children)

    Nano is to EMacs/Vim as Notepad is to Notepad++ or VSCode (Nano has features Notepad doesn't, but you get the point).

    I don't do a ton of code editing directly on the CLI. I do things like change parameters in config files or open a file to read it quickly. If I'm doing more heavy editing, I'll use a GUI editor (with an SFTP extension if I'm working on a headless server). So programs like Vim and EMacs have never been useful for me.

    To each their own (and I have all the respect for anyone who knows how to exit Vim without looking it up) but I'm guessing the majority of people have a similar experience.

  • source
  • hideshow 6 child comments
  • [–] 6 points 3 months ago

    I spent enough time learning vim that I can do basic navigation and text editing. I'd like to be able to navigate efficiently like some of the savants out there, but the effort to get to that point is more than I'm willing to put into in.

  • source
  • parent
  • [–] 6 points 3 months ago (4 children)

    Being good at nano does not transfer like notepad transfers to notepad++ or kwrite.
    vim does not respect nano shortcuts and modes are simply a barrier: an extra keypress and another thing to keep track of. It slows you down significantly.
    Noone good at nano would switch to vim naturally, you have to force yourself to endure until you catch back up to what you could long do in nano.

    Conversely I don't know a single shortcut, behavior, or info notepad shows that np++ or kwrite don't have. Besides maybe bracket and quote completion in kwrite which you'd have to disable in settings.
    And on the other hand the advantages are more directly visible, like tabs, syntax hilighting, ...
    You might not immediately intuit the shortcuts for tab management, but you can still use tabs and then not return to notepad due to missing them.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 3 months ago

    Sure, Notepad transfers to other GUI programs better than Nano transfers to Vim or EMacs. But that has little to do with Notepad and more to do with GUIs typically supporting similar shortcuts. Like I said, it's an imperfect analogy.

    I think you missed my original point. Most people wouldn't describe themselves as "good" or "bad" at Notepad or Nano. They're simple programs designed for simple editing. The learning curve is very low for both. Advanced editors have differing learning curves, but they're all a lot more steep.

    And my original point was that, because many people do only simple editing in a CLI and more advanced editing in a GUI, it makes sense that Nano became the most popular for CLI due to its shallow learning curve.

  • source
  • parent
  • [–] -1 points 3 months ago (2 children)

    vim does not respect nano shortcuts and modes are simply a barrier: an extra keypress and another thing to keep track of. It slows you down significantly.

    You obviously haven't used much vim if you think modes slow you down. First it means you don't have to bring your right hand all the way to the arrows whenever you want to move the cursor, secondly it means you can use shortcuts without adding a modifier everytime - this translates to fewer keypresses.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 3 months ago

    I was talking about the new user experience. No new user can navigate without the arrow keys, the most you can expect is looking up i and esc to enter and exit edit mode, and then using both modes the same way being annoyed at being in the wrong mode when something doesn't work.
    Keeping track of the modes is also obviously something only problematic to those not familiar with vim.

  • source
  • parent
  • [–] 1 point 3 months ago

    If you customize nanorc then you can also point and click with the mouse and highlight text and copy/paste like it was a GUI from the terminal. Most people shiting on Nano just never learned it because they learned the editor they are familiar with. Same reason I shit on vim.

  • source
  • parent
  • [–] 11 points 3 months ago

    I'm part of the "learned Linux when I got my first raspberry pi" gang, and all Ras pi tutorials tell you to use nano. So yes.

  • source
  • [–] 8 points 3 months ago

    Perhaps you're right...or perhaps the Encyclopaedia Galactica is a better tool for navigating the galaxy if you're willing to learn a trick or two about how to navigate it? No one ever argued that the Restaurant at the End of the Universe was the BEST restaurant, only that it was the one at the end.

  • source
  • [–] 8 points 3 months ago

    I think Vim is great if you use it everyday and know it inside out. For those of us who don't, Nano is just easier, not least because it tells you in the UI how to exit it xD

  • source
  • [–] 7 points 3 months ago

    That’s because Ubuntu, honestly.

  • source
  • [–] 6 points 3 months ago

    I have been around since production servers were predominantly HP-UX, Solaris, and AIX. I settled on Vi because it was the one common editor that was preinstalled on every *NIX OS, including Linux and you could jump right into edit mode while reading a file without having to exit the preview first.

    Nano is fine, but one you've gone through the pain of committing Vi to muscle memory, there's no point to switch.

  • source
  • [–] 6 points 3 months ago

    Not long ago, I needed to quickly add a 4-line thing to my Ruby on Rails app on my Raspberry Pi. I was like, shit, I really can't be arsed to mount the RPi over Samba to edit this stuff on VSCode on my Windows laptop to add like 4 lines. I don't have vim, I can't be arsed to check which vimlike I have at hand, I can't be arsed to see if my Emacs setup has been customised for this RPi. So fuck it, Nano it is!

  • source
  • [–] 5 points 3 months ago (1 child)

    I use nano just because it's the one that's usually installed. if it was usually Vim, I would use that instead.

  • source
  • hideshow 1 child comment
  • [–] 3 points 3 months ago

    Exactly. I use nano because it's always there, and if it's not somehow? It's in a preloaded repo. It's just so simple and easy.

    And I've used it to write code before, only several dozen lines at a time. And that's BEFORE I knew about the option to use modern key commands. (Learned that today).

    Now nano is unstoppable in my mind.

    If I learned vim or whatever, then on top of learning it, I'd have to stop and install it every single time. Bleh. No thanks.

  • source
  • parent
  • [–] 5 points 3 months ago (5 children)

    I'm a vim stan. I love my vim. I still end up installing nano on all my machines. It's honestly not even for me anymore, it's for anyone else who happens to use it. Vim is great but it's got a learning curve.

    Often times I'll just use vi, since it's always there.

  • source
  • hideshow 5 child comments
  • [–] 4 points 3 months ago (3 children)

    OK so... How long did it take you to learn to use vim? I mean, where you didn't have to look anything up?

    As a nano user, I've assumed it was in the 1 - 6 months range, but maybe it's not that bad?

  • source
  • parent
  • hideshow 3 child comments
  • I had a job for a while where my main task for about a year was reviewing / editing configs on servers, in which I learned the basic functions of vim (opening, closing, seeking, copy / paste, find / replace, etc.) and used them enough to get them embedded in my memory.

    I use vim less now, as I still prefer graphical editors with a visual file tree for most development tasks, but I still have the simple stuff ready at hand when I have to jump on a server and change a config file. I've "learned" new tricks with vim since then, but I have a harder time remembering them when I don't use them every day, and I periodically come across vim functionality that I've encountered before but then forgot.

    So, maybe six months isn't so far off, but it's not that I dedicated myself to studying and learning the full length and breadth of vim's capabilities for that whole period. It's more that I picked up the basics pretty quickly, maybe after a few days of getting settled, then repeated the basics in slightly varying contexts until they became rote, which took longer.

  • source
  • parent
  • [–] 2 points 3 months ago

    if you use something like Neovim/Lazyvim or NVChad it's pretty easy to pick up as you can just hit space and it'll tell you pretty much everything you can do. Neovim also includes a decent tutorial. you can pick up the absolute basics pretty quickly, easily within a day or so.

  • source
  • parent
  • [+] 3 points 3 months ago (1 child)
  • [–] 10 points 3 months ago (4 children)

    Both nano and emacs suffer from the same problem - bad defaults. You need to pass like ten options to nano for it to work as expected to edit configuration files and small scripts.

  • source
  • hideshow 4 child comments
  • [–] 2 points 3 months ago (3 children)

    I haven't bothered to poke it deeply. What options do you use please? I'll give it a go. :)

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 3 months ago (2 children)

    alias nano='nano -A -D -E -F -T 4 -Z -g -i -l -m -q -t -% -_' and you need to enable syntax highlighting in nanorc (not all distros enable it by default) include /usr/share/nano/*.nanorc also there are additional/improved rules for highlighting here https://github.com/galenguyer/nano-syntax-highlighting and you can rebind every key, but it seems that it doesn't support 'chaining' of keys nor multiple modifier keys at the same time.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 months ago (1 child)

    Nice, thanks!

    For anyone wondering about the options: https://i.imgur.com/hAjTxJO.png

    Also, apparently you can create ~/.nanorc and put the following in for those (instead of an alias):

    set smarthome
    set boldtext
    set tabstospaces
    set multibuffer
    set tabsize 4
    set zap
    set showcursor
    set autoindent
    set linenumbers
    set mouse
    set indicator
    set saveonexit
    set stateflags
    set minibar

    I'll play around with those and the syntax stuff. I definitely personally do not want the saveonexit behaviour, but you've started me on the path of looking at the other options, and that right there shows me it's worth my time to look, so thank you :)

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 months ago

    Example of optimocracy

  • source
  • [–] 3 points 3 months ago* (last edited 3 months ago)

    I use helix for all my developer work and nano for "I need to edit this config file buried somewhere in /usr/...". I never remember to do Sudo -E

  • source
  • load more comments
    view more: next ›