Laughs in Zed
vim was such an unimaginable improvement over nano for doing stuff on linux servers. Having an in-shell-editor search-and-replace function alone is worth everything you have to do to learn vim.
And after I was comfortable around vim because of all the "training" on servers, I just switched to vim fulltime. No more GUI editor for me!
Nanos search and replace is Alt+R
as far as I remember
Ha, that would've helped me a few times. Good to know!
Still, I wouldn't switch vim for nano ever again. nano is a good and easy start, but I think if you do more than just basic editing of a few files every now and then, learning vim is the way to go.
vim is pretty customizable, widespread and it has been around for quite some time after all. If you think you need it, somebody most likely already made it as a vim-plugin :)
I like VSCodium, a vscode build without ms telemetry and such
sounds interesting enough to try, thanks! :D
it’s identical to vscode, except that a few extensions don’t work (notably, intellicode and the ms c/c++ extensions)
You will be tempted to think that by learning how to use (neo)VIM your coding skills will magically improve tenfold.
It won't
Wait really? Shit I’m like 1 year into learning vim. What editor should I switch to that will magically make me a good coder?
Jokes aside, all of my favorite IDEs have an option to use VIM key bindings so learning VIM makes it easier to learn other IDEs.
That alone was enough to convince me to learn VIM
The best thing about Vim is that despite having all the features of a modern IDE it starts in 0.1s and you can start editing right away while the code data is loading asynchronously.
The worst thing about Vim is that... just kidding, there's nothing bad about it.
Vscode I'm always like all right let's code... Ah shit, the "what's new" window has popped up again in the middle of my typing...
I never close my IDE or reboot. Problem solved.
Also had to update virtually every time I touched it and half the time those updates would break it so I had to reinstall. I didn't use it on a daily basis or anything and it's been a few years so maybe they fixed that but it's why I don't currently use it (along with the fact that it's a microsoft product and I'm trying to stay away from all their shit as much as possible).
People meme about “q!” but it is super helpful to have that extra step, because sometimes your fingers are moving faster than your brain is. That quick switch back-n-forth vim - gcc - ./a.out loop and my probably ADHD mean that vim saying, “hey, remember you haven’t saved this yet” is a godsend.
You are right about the best part about vim - you can work as fast you type.
0.1s is way too long, you need to optimize your startup time. /s
There also IDEs that start instantly.
They don't ship a whole browser though.
It’s a trade off for sure. I think the area editors like Vim totally win in is when you need to ssh into a server and edit something. I think it will always exist because of this use case
I can ssh in with Krusader and edit from Krusader's GUI editor. I would probably still do it from the terminal because it's faster, but it's good to have more than one way to do things.
I remapped the power button of my computer to whatever that series of keypresses is that exits vim.
That's really smart. That way if I ever figure out the command to exit Vim, it'll behave the same as my current method (powering off the PC.)
helix btw
When the pluggings system drops it's going to be wild.
Helix is “it just works” but it actually does, without having to get lost in the (config) sauce.
It’ll be unstoppable once they finalize and ship the plugin system.
Edit: and I haven’t even mentioned the descriptions above commands, the command palette-like functionality in <Space-?>
, nor the tutor yet. It’s just so much more beginner-friendly.
Yeah, so many things are so easy to configure with less moving parts, plus the window splitting is amazing.
Vim and VScode are my favorite code editors but I admit that Vim is better :]
Knowing how to actually navigate vim is worth learning. Especially if you work in embedded systems where a lot of the time you're on setup that is running barebones and likely just has vi as a text editor.
But I used VSCode for dev work with the VIM plugin.
Emacs with evil mode
So kind of off topic. Like 15 years ago emacs vs vim split in engineering was like 50-50. Now I see more like like 90-10 with vim winning. What happened? I always assumed they are equivalent more or less.
Emacs has scripts that can do almost anything. If you wanted to, you could pretty much replace your graphical desktop with Emacs and still do pretty much everything you do. vi is an editor.
Ah! I loved using Doom EMacs for a while!
… but alas I came back to my initial love with Neovim 😜
Why not both?
Hmmm there seems to be a vscode in my vim.
When the debate revolved around Emacs vs. Vim, I used Spacemacs. It seem we moved on from that?
Is it now about VScode vs. (Neo)Vim?
Guess that means Vim won the Emacs vs. Vim debate then, when it got into the next round.
It was never really a competition - just some misguided people who liked Emacs
wait what?
It's VIM features and key bindings that you can toggle on and off with a hotkey in VScode.
Very handy when you have a task that VIM is better at (for your workflow), like recording s macro and replaying 100 times.
Do you mean Neovim?
Surely you aren't comparing a flat text editor to an IDE that has language server support, debuggers and refactoring tools?
Vim and VS Code are both text editors that can become IDEs with plugins. You can use vim with language servers if you want, as there are plugins for it.
I only use butterfly flaps that move magnetic needles next to my HDD.
Wouldn't the one that ops you into telemetry be the trap?
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
- This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed.
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.