I'm trying out Obsidian for taking notes, and this made me laugh.
I like nano because it has worked any time I needed it. I don't dislike nano because I'm not good enough at Linux to have ever run into its limitations
It just makes a lot of stuff way easier once you know how to use it. Switching out a word for another: two button-presses, duplicating a line: three presses, deleting 500 consecutive lines: five presses
But you can do all that with nano and it is straight forward and you don't need to memorize any key combinations. I mean, I get it and no judgement here. I just use nano because it's easy and quick.
I write my code in an actual IDE. And I use nano for only, like you said, config files and those little things. And I have never used emacs and I don't even know how it looks like. I'm dead serious, I don't even know what emacs is or what it does. lmao
Emacs is basically a lisp interpreter packaged with a suite of "example" utilities, like a text editor. It's one of the two historical editors used as terminal IDEs, along with vim. Emacs tends to take a more batteries, kitchen sink, web browser, games, IRC client, etc-included approach. It can seriously be closer to an OS in functionality.
nano gang checking in.
However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.
Alternatively, you can save a key and use
:x
(And:q!
to quit without saving)Yeah, that’s such a Vim user thing to say :P
:up|cq
to save a write cycle and signal an error to whatever opened Vim.20 years of software engineering and you too will have a 10-20% chance of knowing how to exit vim.
% of the time I'm using nano to edit something in the terminal, and it's usually something really minor. I'm using GUIs for the majority of my computing anyway, so if I need some robust text editing, I've got a bunch of easier-to-learn, easier-to-use options available, and that's totally ignoring things like awk, grep, sed, etc.
I personally like nano but it's what I used first. So I learned the commands. Vim I still forget Everytime.
If anyone needs the command: :q!
If you want the computer to ask if you're sure: :q
If you want to save: :wq
:wq
will write even if you didn't change anything;:x
won't. (similar to:w
vs:up
)
Big brain time,
pkill vim
Vim: Caught deadly signal TERM
Vim: Finished.
Terminatednah, i just start a new terminal with
:terminal
and then start new vims inside that...