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.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
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.
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.
Sometimes you need a real good slice of humble pie to remember what’s important in life.
digital watches
We should have stayed up in the trees.
They're neat!
I like Nano; it lets me do what I need to do quickly, simply and efficiently.
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
Vi lets me jump to the place I need to be and make edits to a config file very sticky, simply, and efficiently. But all that came at the cost of the steep learning curve.
ed is the standard text editor
I shall prematurely end this comment chain with the obligatory xkcd. Yes, you've seen it before, and you will see it again.

Fun fact, in emacs they added M-x butterfly as a reference to this xkcd.
i've been using emacs for a while and i cannot believe i've never thought to check for that. sure enough, there it is. amazing.
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.
In the beginning, boolean algebra was invented.
This has made a lot of people very angry and been widely regarded as a bad move.
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
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.
I haven't bothered to poke it deeply. What options do you use please? I'll give it a go. :)
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.
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 :)
That set of options sounds basically like micro's behavior by default...
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.
DOS edit was just an alias to qbasic /edit packaged in a .com
Nano is great for editing files. It is absolutely terrible for any amount of text processing or anything other than raw code copied from a tutorial
You guys do text processing on terminal editors?
was gonna say, I have IDEs and other dedicated programs for that
oh no, not again.
*Ahem*
mcedit
under sung hero of easy tui text editors. [Has controls on screen.]
overlooked because it's part of mc, and thus does not show up in the text editor categories in package managers and websearches?
could do a similar THGTTG bit for it. ... or other parodies of other stuff... idk, my brain not conjuring such things with ease just now.
(And yes, I missed the reference, at first, too... Thought about responding with some contrived towel elaboration).
mcedit is fine. I personally find micro the perfect blend of features and simplicity.
It is preinstalled and does what it needs to do. What else can I ask for?
I understand why. People tried using vi/vim but couldn't figure out how to exit the app. On the other hand, with Emacs, you need to use 4 keystrokes to do anything. It does not surprise me why nano is way used by default.
Sometimes I catch myself opening nano inside emacs' term. I literally forget I'm using emacs and just do it on instinct. I once also opened emacs inside emacs' term and I just stared at the screen in disbelief.
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.
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.
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
That’s because Ubuntu, honestly.