Laughs in Zed
I’ve enjoyed JetBrains over either so far.
deleted by creator
Fly in fly trap:
:q!
Recording @q
I thought flies use
ZZ
for the onomatopoeiaSo
ZQ
comes from the sound of a fly being swatted?
But if you accidentally typed
a
ori
, press ESC first.
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.
My work Mac always bitches about it because they push updates.
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).
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.
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.
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.
Is it bad that vscode is my favorite ssh client
I remapped the power button of my computer to whatever that series of keypresses is that exits vim.
that series of keypresses is that exits vim
One of the great mysteries of the universe. However, I can confirm that my standard power button also 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.)
Emacs with evil mode
Ah! I loved using Doom EMacs for a while!
… but alas I came back to my initial love with Neovim 😜
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.
There’s been a lot more evangelism about emacs lately.
Also the fact emacs has doom and spacemacs to ease new users in while vim drops you into
:
and tells you to swim means that it’s easier for emacs to get new users.
Yeah, this is the best solution at the end of the day for most would be text wizards, emacs is beautiful, vim keybindings are beautiful.
lisp makes my brain relax
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.
Thanks, I wasn’t aware of that!
Makes sense though. Vim plugins exist so anything is possible. Neovim having native support for LSP and DAP makes it a lot easier though.
I only use butterfly flaps that move magnetic needles next to my HDD.
Like a real programmer would.
I do the same with moths as they are more active at night
You need a bigger lämp brøther!
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)
HAHAHAHA I know the secret passcode to escape!
Incidentally, it’s ctrl+]. But I remap it to ‘kj’, and somehow have never typed ‘blackjack’ in all my years of using Vim!
I fucking love that 😆
So… we meet at last, Doctor Evil!
I just use cntrl-z and then
kill %1
Seems like overkill to escape from insert mode. Then you just have to open vi again!
Wouldn’t the one that ops you into telemetry be the trap?
Good luck exiting that!
ctrl-x. ;)
oh no no no
it’s the x button on the top right of the window
laughs in i3
I used to know a developer who wrote all his code in Notepad. This was around 2005 or 6. We had just starting to replace our legacy ASP code with ASP.Net, which he was determined to do in Notepad. I was gone before I could see how that worked out.
The trap is that you should use vi. Don’t wuss out.
Too much pain there, sorry.
Yeah. A lot of people who use vim don’t know how to use the full power of vi. They’ll often install plugins to do things they could have easily done with built in features!
The one area where regular vi sucks though is undo. If you want multiple undo then you’ll have to at least go with something like nvi.
imagine thinking a non user will read this and want to use vi/vim
vim users have the same energy as latex users
I don’t really recommend people learn vi/vim even though I’ve been using it for years and love it. It’s a very personal thing and the time you invest into learning it might not be worth it if you don’t use its features enough.
I think it’s dependent on your personality and neurodivergence/neurotypical characteristics (I don’t know a word that encompasses all of this). If you’re the type of person who gets really annoyed/distracted by any sort of “friction” in the editing process then I think you may be a good candidate to learn vi. Otherwise probably not!
Edit: by the way I’m also a LaTeX user!
I sometimes wonder why some programmers don’t use vim. Aren’t they lazy enough to be bothered about unnecessary work and “friction” you have to deal with when using ordinary editors. I’d rather do the interesting parts of the job and command the computer to do the rest. Of course the communication with the computer has to be as concise, as effortless, and as easy as possible.
For me (sysadmin actually) it’s because what I’m doing is either simple enough that I can use Nano (editing simple config files) or complicated enough that I’ll want a full fledged IDE. I use VSCode and it handles remote files really really well.
Although I have learned a little bit of Vi/Vim because sometimes thats all you have.
Plus if you’re doing major changes (like more than editing a line or two) you shouldn’t be doing that on a production server anyways. Like if I found out an engineer or dev was primarily working directly off of the server they would probably be on their way out the door. Uptime is worth way too much for that nonsense.
vim user
LaTeX user
When you go to the wrong side
I prefer to call it the dark side!
Come to the evil side, we have org-mode
I’ve tried. It breaks my brain too much. I’ve even used emacs without evil but the unholy combination just does not work for me.
I have the same problem with all vi/vim emulation modes in other editors. There’s always some incongruity that messes me up.
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.