4 ms·
Just curious, why are people interested in small editors like this? The only reason I ever use vi/vim is because it's everywhere. If I'm going to install an edi
by globular-toast 3y ago
Just curious, why are people interested in small editors like this? The only reason I ever use vi/vim is because it's everywhere. If I'm going to install an editor, I'll install Emacs. If it's a remote system I'll simply open the file over SSH with tramp (essentially transparently supports remote editing) and retain the full power and speed of my local Emacs. For TUI editing (like for sudoedit, git commit, C-x C-e etc.) I run Emacs as a daemon so new frames, including TUI frames load instantly, look very close to my Emacs GUI (with nerd fonts, colours and everything) and are literally Emacs. You really don't need to have multiple editors for different use cases.
- mixmastamyk 3y agoNot everyone is interested in a humongous editor with a steep learning curve. Some people just want to quickly edit a file. You can use this with the knowledge you have already of windows notepad or mac simpletext and it will work on a busted or server machine with only a unix console.
- KnobbleMcKnees 3y agoIt also works where you don't have ssh to tunnel files, which is true for many servers in many professional environments.
- tasogare 3y ago> Not everyone is interested in a humongous editor with a steep learning Then why using a TUI editor at all? Each time nano was opened because of some default settings, I saw this whole bottom bar with shortcuts. It sure doesn't seems to be easy to learn either.
- nicoburns 3y agoI use micro as git commit/rebase editor. It's handy to be able to do multiline commit messages and interactive rebases without leaving the terminal.
- Terretta 3y ago> I saw this whole bottom bar with shortcuts. It sure doesn't seems to be easy Sounds easier than not seeing a bottom bar with shortcuts.
- mixmastamyk 3y agoWhy not? Usually it’s because you don’t have a GUI available. But also great for a quick edit with sudo. Ctrl+S, Ctrl+Q FTW.
- linuxdude314 3y agoI don’t understand why so many people in these comments are claiming text editors are “hard” to learn. Software engineers that went to college have taken Calculus, Physics, and other advanced courses that can be very hard for many to learn. The reality is that memorizing a few keyboard shortcuts is not in fact hard. It’s something that can take time, and you might not like the shortcuts, but it’s not hard. If you want to use powerful tools, you’re going to have to learn how to use them. There’s no way around this.
- mixmastamyk 3y agoYou’re in the wrong thread. Normal folks outnumber developers 100 to 1. Not to mention, some of that dev group prefer that their small editor have the same keybindings as their full dev environment and entire OS for that matter. No mode switching needed.
- globular-toast 3y agoI don't get this either. You watch a skilled tradesman work and he'll use all manner of tricks he's learnt over the years. His tools will do most of the work, he just gently guides them in the right direction. Then I'll see developers not even using tab completion in a shell. It's almost like tooling has to shout at them (like underlining errors etc) out of the box before they'll interact with it. It's so strange.
- globular-toast 3y agoIt's funny because `emacs -Q -nw` loads instantly on my very modest system and supports pretty much everything `nano` does immediately. You can move around with arrows, you can just start typing etc. The one thing it's missing is telling you how to save and close the file etc... Makes me wonder if a nano-style help bar with super-simple key bindings would be a useful default bundle for Emacs. `emacs -Q` seems to load even faster, somehow, and that's the full graphical version if you have a window system.
- eternityforest 3y agoNano is on all the OSes I ever encounter. I don't edit things remotely often and it's usually trivial config files. I tried micro, and liked it but it didn't quite open instantly on a pi and I don't use CLI editors for anything big enough to really need the features.
- OfSanguineFire 3y agoI have been a Linux nerd for over two decades, but I never managed to grok vi, it just seems unintuitive. I found Emacs more attractive, and when I ssh into a low-powered device like a router running OpenWRT, Emacs isn’t available so I use the editor that is available and seems intuitive: Nano. (Yes, I know I could also use Emacs with TRAMP, but everyone establishes their own personal workflow.) This comment isn't meant to knock vi. Obviously it has its fans. But the inability of some hackers to feel comfortable with it is a well-known phenomenon.
- linuxdude314 3y agoHave you ever sat down for an hour and tried to learn? If you’re familiar with Unix tools a lot of the syntax should be familiar (like string substitutions). Having been a math tutor in the past, I pretty firmly believe anyone is capable of learning the basics of how to use vim. It’s either a lack of effort or a learning disability, not much in between. It’s really not hard to memorize a few keyboard shortcuts for most people who are proficient with computers.
- seabrookmx 3y agoJust because you can doesn't mean you want to. There's alternatives.. if OP doesn't like vi's bindings why would you insinuate they're lazy or have a learning disability? For my 2c, I did invest the time and know my way around vim fairly well. I still prefer micro.
- thargor90 3y agoWe use micro because we could develop a custom plugin without too much effort and it is very easy to deploy (copy) to systems that have no good terminal editor available. Prefer vim usually, but it's too much effort to deploy a sane configuration to our target systems.
- oytis 3y agovim vs emacs is an age-old flamewar. I for one was never able to make use of emacs, it feels like a whole new hobby or job to configure it. Vim on the contrary is pretty convenient to use on default settings.
- Terretta 3y ago> interested in small editors like this Not really interested in small editors like this. Very interested in small editors like* nano, for this root comment reason: https://news.ycombinator.com/item?id=37173126 https://news.ycombinator.com/item?id=37173126 See also the opening paragraph here: https://linuxize.com/post/how-to-use-nano-text-editor/ https://linuxize.com/post/how-to-use-nano-text-editor/ It's courteous to ensure nano in cattle builds for today's sysadmins that didn't grow up with vi or vim or pick the emacs side of that debate.
- globular-toast 3y agoNano is pretty decent for that reason and I definitely wouldn't grumble at having to use it for tiny tasks like a few lines of config file. Including nano (or any editor) inside cattle doesn't seem like it should be necessary, though. If you can open a shell then you should be able to use tramp or something similar.