r/reactjs • • Feb 12 '21

Show /r/reactjs We built a responsive note-taking app using React & Typescript for studying.

622 Upvotes

88 comments sorted by

View all comments

Show parent comments

21

u/cyber_Void Feb 13 '21

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

4

u/jimmyloi92 Feb 13 '21

VIM is difficult to master. It took me 6 months.

3

u/InMemoryOfReckful Feb 13 '21

Isn't vim just a way of navigating and editing code? Cant you have vim in vscode? Or what am I missing here?

1

u/jimmyloi92 Feb 13 '21

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)

3

u/[deleted] Feb 13 '21

Not to be glib, but if you’re running a note taking app for in browser, you have far more than enough resources to use vim for vs code

1

u/jimmyloi92 Feb 13 '21 edited Feb 13 '21

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)

1

u/[deleted] Feb 13 '21

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.

1

u/jimmyloi92 Feb 13 '21

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).

1

u/[deleted] Feb 13 '21

For sure... I think the magic is we just like different things.

I’m mostly in devops so I really don’t have allegiance to anything.

  • Pycharm for intense desktop dev, terraform, ansible, etc

  • Vscode for webdev

  • Occasionally vim/nano locally but within tmux

  • Tmux+vim/nano on remote hosts

I guess I haven’t found a need to be religiously “low resource” since a decade back when cores became cheap

1

u/InMemoryOfReckful Feb 13 '21

Generally when I'm writing code I dont really ever find myself writing code slower than my thought process. And most time when developing a project for me isn't spent coding. Unless you're a 100x developer or some shit lol (which u may well be idk).

But recently I've been editing XML documents and i wish i was good at vim for this shit.

4

u/MatthewMob Feb 13 '21 edited Feb 14 '21

I don't really see how Vim is archaic.

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.