this post was submitted on 09 Feb 2024
20 points (95.5% liked)
Linux
48323 readers
745 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Every text editor has a learning curve. It looks like the terminal shortcuts you've been learning were bleeding over into nano. That's not a nano problem, that's just where you're at on the learning curve right now. You probably would have made the same trip-ups in another text editor for the same reason. Even DOS' EDIT.COM had a learning curve back in the day.
I don't want to get into a text editor flame war here. Suffice it to say that trying lots of different text editors is a good way to see what works and doesn't work for you. If it helps, I used pico as my primary editor for a good fifteen years, until I forced myself to learn vi just because I wanted to branch out a little.
I don't think you have to learn every last little thing about a text editor, just what you normally do: Move the cursor around, enter text, delete text, search, replace. Don't worry about learning everything, learn what you need as you need it.
As for universal, I'm afraid that it's probably going to be vi and its descendants. It's been included in many UNIXes and UNIX-alikes for decades (it's even built into busybox) for a reason: It's small, lean, mean, and if you absolutely, positively have to rescue a broken box, it's always there in /bin.
Hiii !
You're right ! but I have to add that I found nano's default shortcuts really "out-of-tune" and not intuitive at all (personal opinion). Sure I could have changed them to my liking, but that would cause portability issues I do not want to cope with !
👍
Ouch ! A lot of people actually tend to suggest that also, while I only tried vim once, I just uninstalled it after I had to google "how to exit vim" :| ! It was way to much of a hassle to just edit text :/. But as I read above, and as you said, just learning the basic stuff is enough to begin to like it and get comfortable.
I'm uncertain which one I should stick with, someone suggested
Micro
, which seems really cool and more in sync on how I use the terminal at the moment. But there's also the fact that vim is more universal and present everywhere, and even If you, as a long timer, switched to vi after 15 years, shouldn't I just make the switch right now?One last technical question if you don't mind, I already asked someone else but I'm interested in your long lasting technical expertise.
Does It make sense to adapt/sync the keybinding shortcuts between the terminal and the text editor? Or do you know which one to use in every case scenario? Probably stupid, but that was probably my initial question with my Post, because I was sooo frustrated I couldn't use the same shortcuts in nano... That's what I was referring as "universal", (wrong word choice :).
Thank you for your inputs !!!
vi and vim take a little getting used to. There's no shame in needing a cheatsheet; I used one when I was getting used to it (and the first time I had to use it in an emergency, I was looking up what I needed pretty much every minute). This looks like it might have something useful.
Ultimately, what got me used to vi was using it every day to write blog entries (because, at the time, it was still hand-crafted HTML). I just had to use it a little every day.
I think it would be helpful if you used vi a little bit to get used to how it feels. It couldn't hurt to use Micro for a week, also, for the same reason. There's no rush, there's no deadline, give yourself a week of each to play around with them.
As for updating the keybindings, I don't think it's a good idea, because the minute you find yourself on a system that doesn't have them installed you're back to square one. And, if you're in the middle of fixing something you probably won't have time to import them (and you may not even be able to, depending on what's wrong).
..doesn't nano still have the menu bar at the bottom by default? I know pico (its predecessor) used to.