10 ms·
For those like me who don't edit text from the terminal often enough to memorize any vim or emacs shortcuts, your system probably ships with nano, which is a de
by _bxg1 6y ago
For those like me who don't edit text from the terminal often enough to memorize any vim or emacs shortcuts, your system probably ships with nano, which is a dead-simple editor built for people like us: https://en.m.wikipedia.org/wiki/GNU_nano https://en.m.wikipedia.org/wiki/GNU_nano
You can even set it as your default editor via an environment variable and it'll get automatically invoked as needed by git, etc.
- SomeoneFromCA 6y agomcedit is way better than nano, IMHO.
- jack_pp 6y agoright now just about every major IDE has a good enough vim mode. Basic vim movements can be learned in like an hour and soon you'll feel like you're trying to type with your toes on an ipad when using nano
- craz8 6y agoEsc, Esc, Esc, colon, q, nano Works every time, takes less than an hour to learn
- mfontani 6y agoVim's (well... "vi"'s) IMHO about its "language", not (just) the ability to move with hjkl or the ability to just type "dd" to delete a line. The ability to join together optional "contexts" (this visual selection, this line range, the whole file, ...) with "verbs" (delete, change, append, ...) and "adjectives" (up to, including, ...) and "nouns"/"things" (word, WORD, next search term, letter, line number, ...) is what makes the language both worth to learn, and powerful. This is enlightening: https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim#1220118 https://stackoverflow.com/questions/1218390/what-is-your-mos... My point being: aside from the few IDEs which "really include" a copy of "full" vi/vim (i.e. including a remote neovim they communicate with), a well-seasoned Vi user is probably far better off using the real editor, than they are using a crippled "vi-like mode".
- jack_pp 6y agoI'm a basic/intermediate vim user for about 8 years now and I implore you to stop talking about vim like this. You overcomplicate basic vim and make it sound all esoteric when it isn't but people who haven't gotten through vimtutor will probably read your comment and just reinforce the belief that vim has a steep learning curve and is probably not worth learning. Also, try vim mode in VSCode before stating that it's not really mature enough and you're better off with vanilla vim. I am certain you haven't and are operating on the mistaken assumption that vim modes are not mature enough
- methodin 6y agoI disagree. Without getting to know the language you end up just memorizing commands which is akin to doing the same thing in school to pass a course but getting nothing out of it in the long run.
- jack_pp 6y agoGetting nothing out of it? Any navigation whatsoever using a basic editor is a pain in the ass compared to vim, learning that alone is trivial and would probably make people switch to vim. Add to navigation a few bells and whistles like replacing text inside brackets, dot macros and probably 10 others things that I can't name off the top of my head but are very convenient and "in the long run" you would've saved a whole lot of time and made coding more enjoyable because your edit speed is noticeably improved.
- 411111111111111 6y agoPersonally I went from cli vim on servers (sys admin) to vim mode in atom. I loved atoms vim mode - especially the way it handled multiline input. Then I switched to vscode and struggled a little. Copy paste didn't just work, i.e. getting things from the register (yank) into another application and multiline input was not pleasant (esc deselecting instead of exiting input mode etc) Then I switched to intellij (developer now) and installed vim mode. When I noticed how often I had to use the menu because I wanted to use an ide feature I realized that it got more in the way then in helped, so I removed it and went back to just navigating with ^-f and arrow keys. I definitely miss atoms vim mode. But it's not that big of a difference, because the actual input time is usually less then the time thinking about what to implement and how to do it.
- dageshi 6y agoI base my personal hatred of vim on the first time I encountered it and couldn't escape from it. CTRL C, CTRL Z... nothing worked, I was utterly trapped, I think I may have even had to reboot the system to get out of it. I decided anything so utterly unintuitive wasn't worth my time and stuck with nano ever since, quite happily I have to say.
- antepodius 6y agoHappy like a pig in shit, we vim elitists might say! ;)
- saagarjha 6y agoNano supports some line editing Emacs shortcuts!
- Aloha 6y agoI'm also a huge fan of nano, no it's not as powerful as emacs, but I don't need that much power in my text editor frankly.
- deleted 6y ago[deleted]
- morganvachon 6y agoAs a non-coder I also find nano to be more than enough for 99.9% of my needs at the terminal. It's the first thing I install on a fresh OpenBSD (though sysupgrade(8) has likely made reinstalling that OS moot), and it's my goto for any non-Windows system I maintain. Back in the early 2000s before I found nano, I used JOE on Slackware and loved it. I discovered nano and learned it, and now if I try to use JOE I find myself turning on its "pico mode" to get back to now-familiar commands.
- Aloha 6y agoI agree totally
- fomine3 6y agoI'm very surprised when I realized that nano hadn't support undo/redo until recently (undo Enabled by default around 2016).
- deleted 6y ago[deleted]
- zem 6y agoI tried switching to nano but my Arduino button no longer worked to exit
- politelemon 6y agoFor that you'll need an Arduinano
- nicky0 6y agoArdui-no-nano surely
- simion314 6y agoThe issue for me is that sometimes I need to SSH into soem server and maybe check crontab and surprise vim opens, then I need to google again how to exit from vim.
- Shorel 6y agoHate me, but I use mcedit for all my SSH editing needs. All the others are unfriendly in comparison, including nano.
- tiborsaas 6y agoI love mcedit too, I mean come on, it has advanced features like undo, what's there to hate?
- chaoticmass 6y agomcedit is my favorite. Fortunately it's really common in most distros now.