3 ms·
So this is tangentially related by why do people seem to push Vi? Nano is a perfectly serviceable editor. If I need to do extensive editing I always end up lo
by karmicthreat 11y ago
So this is tangentially related by why do people seem to push Vi? Nano is a perfectly serviceable editor. If I need to do extensive editing I always end up loading it into Atom, Sublime or some other editor anyway.
I've never really had to use a console editor for more than 10s of lines.
- girvo 11y agoNano is fine for 10s of lines, but Vim is great for much much more than that. It's also nice to have the same keybindings for every console app (gosh I love readline), and it's repeat commands make editing text an absolute breeze. Why open another editor on my host if I can edit the file in my console on a remote server?
- elchief 11y agonano is super easy to use, I agree. I tried vim and gave up. Will try again.
- baghira 11y agoI find it a bit irksome that when discussing command line editors, the dichotomy appears to be be "nano vs vim". There are other CLI editors. I'm quite partial to ne (the Nice Editor), which has more manageable shortcuts than emacs, a command line (it's still a non-modal editor, to be clear), macros and syntax highlighting. Also jed is not bad. While vim (and nvim) have advantages, and certainly benefit from being ubiquitous and having ther shortcuts replicated in other programs, users should shop around, even on the command line.
- mbillie1 11y agovi keybindings are ubiquitous, so familiarity with the editor is beneficial outside the editor. Just offhand, both ncdu and tig (which I have used in the past hour) respond to vi keystrokes. It's not as hard as it first seems to learn, either. Well worth the time spent, vi is worlds more powerful than nano.
- kjs3 11y ago"I don't understand why everyone doesn't do things exactly like I do using only tools I like" is a really stupid way to look at the world.
- teirce 11y agoIronically, it's unclear whether you're countering the comment's argument, or the article's argument. "Use vi, nothing beats it." == "I use x and I like it just fine." If that was your intention, my mistake. It's just not apparent.
- AdieuToLogic 11y agoIn modern Bourne shell derivatives (Bash, ksh, some POSIX shells), the command: set -o emacs Will give command line editing bindings compatible with Emacs (which is also the default editing keys in MS-Windows and many IDE's BTW). HTH
- greggyb 11y agoEmacs bindings are not at all compatible with MS Windows.
- AdieuToLogic 11y agoYou're right. I had misremembered thinking that the control keys often exposed in various GUI's were the same as the cmd ones. Which they are not: http://ss64.com/nt/syntax-keyboard.html http://ss64.com/nt/syntax-keyboard.html Also, the original comment was on "console editors" and not on "command line editing", which is what I thought the subject was about. Looks like I struck out on the whole comment.
- taco_emoji 11y agoNano is not as ubiquitous as vi. Every single *nix box will have vi on it, so even if you prefer something else, it's still in your best interest to learn the basics of vi.
- hobarrera 11y ago> If I need to do extensive editing I always end up loading it into Atom, Sublime or some other editor anyway. So you're saying "why would you use X, when you could avoid that by using Y"? Well, because people prefer X, for a variety of reasons. Not to mention vi is installed everywhere, while sublime and atom are not.