ed is the standard text editor.
nano just works for me man
Getting used to vim has made nano unusable for me. The muscle memory is too strong. That and all of the regex and plugin features (ex. LSP) are just too useful.
Only a Vim user can call RegEx an advantage
After 30 years coding in college and professionally, this is the ordering:
- anything else
sed -i
vi
It’s the worst vietnam-era throwback mess I’ve ever seen. And in 30 years, I’ve seen some serious crap.
NANO GANG RISE
for everything else, there’s sublime.
I tend to work on customer systems where I’m not allowed to install anything. I’ve yet to encounter one that doesn’t have
vi
installed, but I’ve seen a few withoutnano
.vi is part of the POSIX standard, so it’ll be available in some form on almost anything UNIX-flavoured
Which is a great reason to at least familiarize yourself with it. It’s the lingua franca of text editors.
Unless you wanted to learn to use ed (which you don’t)
ed is sadly not installed by default on some modern distros. Even vi is often a symlink to vim in vi-mode.
Really? Not that I’d notice, but I assumed
ed
was so tiny that there wouldn’t be any reason to not include it. (Ubuntu has it and it’s 59KB)Asking for
vi
and gettingvim
is just a pleasant surprise :)
Also; Don’t use vim.
Yeah, neovim is better
Once you try Vim you will never use another text editor. Or any other program for that matter because you won’t be able to exit.
If I wanted to hear about what’s good about Vim, should I:
a) ask what’s good about vim
-OR-
b) assert blindly that there is nothing good about vim so fanboys will come crawling out of the walls tripping over each other to tell me how I’m wrong?
Doesn’t matter we will tell you either way.
- Instead of simply shortcuts, vim uses “chords”. Every new shortcut I learn can be combined intuitively* with all the other shortcuts I know.
- Because of this there’s no faster way to edit files than Vim in the hands of an experienced user.
- this let’s me spend almost no time editing code, freeing up the rest of my time for swearing at piss poor documentation.
* I use “intuitively” here in a way that not merely stretches, but outright abuses the definition of the word.
Vim is a puzzle based text editor
Funny you should say that, because…
Exactly, it is lovely. Editing text with it is actually enjoyable.
The dopamine rush when you nail a complicated
%s
regex search-and-replace first try is insane
I’ll stick with my trusty Emacs (and Zile)
emacs is a fantastic operating system, but it lacks a good editor.
Still don’t like it.
Repeat as necessary.
Anytime I open Vim I ask the same question.
“how the fuck do I use you?”
then go back to nano
repeat.
Have you tried micro? Nano but better.
Have you tried GUI text editors? They’re like the CLI ones, just from this millennium. We’re no longer etching runes into rocks any more either.
Sometimes it’s not so easy to fire up a GUI, like when you ssh into another machine.
What about notepad++ under wine?
Notepadqq is basically an exact clone of Notepad++ but native on Linux.
I used it for a good while before recently switching to Kate.
Sudo apt install AGAIN!
Genuinely took most of my notes in college on vim, when you get good it’s just faster.
I’m sure someone already made a graph plotting the hours wasted learning vs the seconds gained not moving your mouse.
U guys are using terminal? Like barbarians?
Yes.