As someone whos hardly used VIM, is that actually beneficial for you, or a challenge you set for yourself? Is it actually something so robust that when youre good enough at it you dont need an IDE?
Vim has so many plugins, you can make it your IDE. I used Vim for a decade before I switched to VSCode and I'm still not sure if VSCode has made me any faster.
The question is whether VIM is any faster. Feels very much like VIM is used by a lot of people who like to tell you they use VIM. VSCode is a great IDE and as long as you take a little time to learn the useful shortcuts I struggle to imagine most people using VIM are that much faster.
If you don’t know if you are faster in something, you probably have your answer.
It’s true. People who don’t know Vim cannot imagine why we like Vim. To most developers, it looks like a crazily complicated editor. But to those who master it, it’s like a god-send. I don’t want to compare it with VSCode because one is text editor and the other is IDE.
Vscode is a code editor it is not an IDE. And I don’t think VIM is worth learning anymore. It is something that was used by a lot of people before we had VSCode and they keep with it. If your brand new and haven’t used either there is no advantage to VIM.
Not watching an hour and half video sorry. You said it yourself it is time consuming to learn and it is not a skill people hire for. Your not going to find VIM on job listings often if ever. If your saying you can not use a mouse the same is easily done in VScode and you can even use VIM shortcuts if you want. I work with blind kids teaching them to code and VSCode is a breeze to navigate without sight and has tons of support for keyboard navigation and quickly finding references throughout the project. Again what is VIM offering that is not summed up in an hour and half video? Nothing to a new developer.
I feel setting up VIM as an IDE is a bit clumsy. It lacks some basic window management features and the plugins don’t play nicely with each other. Of course putting enough time in it can make it run like a well oiled machine. I’m very much a fan of Vim emulation in VSCode. I use that daily and colleagues ask me to do the typing in a mob or peer programming session because of the speed I navigate the files and lines etc. I’m a heavy keyboard shortcut user so that helps too. For me this is the perfect balance between a speedy editor and a well functioning IDE
Productivity is one reason why people use VIM. People say you will type faster than you think with VIM (because you’re not using mouse/trackpad at all)
Even if you don’t use VIM, you don’t need an IDE. You can use nano, etc...
I started coding with vim. Then realized how much time I was wasting with such an archaic system. Then I switched to vs code and my productivity jumped 10-fold
In some IDE or editors, you can install add-on to make it behave like vim (vim mode). But it still does not have all features of vim and people use vim because it’s lightweight (fast)
I don’t think people understand Vim enough. Vim is a text editor (not IDE). You can open 4 Vim instances at once. You usually see Vim developers have 4 pane windows (it’s like you’re using 4 VSCode at the same time.) A Vim instance is so lightweight that you can open/close it in a second. Because it works directly from your terminal, you can do lots of stuffs as well. When you work on multiple projects or project with multiple dependencies, you don’t have to navigate back and forth between them. I usually use 8 Vim instances when developing this project (4 splitted windows for each screen)
Do you also use tmux at that point? If the point is lightweight I’d say why not go with tmux and literally no desktop environment at all? I fully understand vim I would just rather use its bindings in an IDE. At work I have a massive todo list so I’ve found the efficiency you’re talking about, I just favor more higher level automation than sticking my heels in about vim
Edit: just to clarify; you did run multiple IDE instances in the past correct? I’m confused about the concept of “multiple Vims simultaneously” when any modern shell environment gives you the freedom to sandbox however many executables you need into however many processes your chip can handle.
You don’t need tmux at all. It’s hard to describe by words because you haven’t seen my set up.
My point is that Vim is so lightweight that you can organize it in such a way that you can work on multiple projects at the same time. This is extremely important when you are working on microservices or monorepos or projects with too many deps. Remember that this is just one of many benefits of Vim.
Furthermore, you must understand that most people here are web devs. They don’t understand the struggle when working with resourse-eating programs like virtual machine (when working on desktop apps) or simulators (when working on mobile apps).
I use Vim for web development and get the same completions, syntax checking, formatting, etc. of an IDE, but also get much more powerful code editing abilities, plus it is much less resource intensive.
Sure it's hard to learn, but in the long term you will be much much more productive once you do learn it.
As someone who used VIM and now uses VSCode, the only thing using VIM gives you is a feeling of superiority. VSCode literally does everything better with the exception of some of the more obscure shortcut keys.
Neovim has built-in LSP support. Or you can use LSP features from VS Code plugins using coc.nvim. You can make it an IDE. This is a demo me doing done Java programming in Neovim https://youtu.be/JGbJp5gqjcc
8
u/twosummer Feb 13 '21
As someone whos hardly used VIM, is that actually beneficial for you, or a challenge you set for yourself? Is it actually something so robust that when youre good enough at it you dont need an IDE?