VIM isn't about speed

  Рет қаралды 148,006

ThePrimeTime

ThePrimeTime

3 ай бұрын

Recorded live on twitch, GET IN
/ theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Article link: levelup.gitconnected.com/vim-...
By: Thomaz Moura
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-Kinesis
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/deeznuts

Пікірлер: 485
@henry-js
@henry-js 3 ай бұрын
The first time my fellow juniors saw my terminal and I told them "I use vim, btw", the wave of euphoria that washed over me was so strong I passed out.
@256k_
@256k_ 3 ай бұрын
for the first time in my life i'm on a team where out of 6 devs me and another person use neovim! so we get to geek out together on it.
@nealiumj
@nealiumj 3 ай бұрын
I get the opposite effect.. a wave of pure cringe when I mention it 😔 I mentioned it in an interview today.. ~am I worried out a small -> big company shift.. “nope! As long as I can use my editor 🤠” ..then they ask what it was and I felt a wave of cringe as I answered ☹️
@emptystuff1593
@emptystuff1593 3 ай бұрын
I had the opposite. I was a junior dev, a senior told me he was using vim. I asked him if he could rename some variable. He broke the code. He either didn't have an LSP or his LSP wasn't good enough to follow reflexive code. Then I told him that's why I use JetBrains.
@philsitumorang
@philsitumorang 3 ай бұрын
One guy asked - is it a mechanical keyboard, I said - yep. And he said - oh, you are using vim, right. And I thought - ok, looks like I am in trend now
@vaeep
@vaeep 3 ай бұрын
@@emptystuff1593So you use JetBrains just because HE doesnt know how to use Vim plugins properly? bruh
@priapushk996
@priapushk996 3 ай бұрын
"I could go faster because I could go longer." You can't spell Viagra without V-I.
@laughingvampire7555
@laughingvampire7555 3 ай бұрын
You can't spell virgin without V-I
@0xCAFEF00D
@0xCAFEF00D 3 ай бұрын
"I could go longer because I was having fun." It's an important aspect programmers of both sexes forget.
@defeqel6537
@defeqel6537 3 ай бұрын
Viagra improved
@matheusiacono
@matheusiacono 3 ай бұрын
You can just say sildenafil
@alchemistmd2422
@alchemistmd2422 3 ай бұрын
Woah
@intentionallywrongraw3896
@intentionallywrongraw3896 3 ай бұрын
It's not about speed. It's about sending a message!
@zZGzHD
@zZGzHD 3 ай бұрын
that's what i say when waiting on emacs to do something
@zeuglcockatrice4633
@zeuglcockatrice4633 3 ай бұрын
you wanna know how I got these scars? *shows fingertips*
@romangeneral23
@romangeneral23 2 ай бұрын
​@zZGzHD then why you using emacs if you don't know how to use it??
@trylks
@trylks 3 ай бұрын
I was thinking: “Dang! He's fast!” Then I realized I was watching the video at 2x.
@HackionSTx
@HackionSTx 19 күн бұрын
But he can go longer 😉
@sutirk
@sutirk 17 күн бұрын
​@@HackionSTx he can go longer if you play it at 0.5x 😳
@HackionSTx
@HackionSTx 17 күн бұрын
@@sutirk🤤
@AlexKadeby
@AlexKadeby 3 ай бұрын
I long for the day I get hired and can finally say "I use vim, btw" to a colleague.
@redpillsatori3020
@redpillsatori3020 3 ай бұрын
Your comment just proves that it's the Arch Linux of IDEs
@shroomer3867
@shroomer3867 3 ай бұрын
@@redpillsatori3020 What happens if you use both Arch Linux and Vim/Nvim? Do you just gain 100 pounds automatically and start growing a neckbeard in 1-2 business days?
@j3y445
@j3y445 3 ай бұрын
@@redpillsatori3020 except for the fact that you can get actual work done with a text editor like vim, instead of messing around with config files for weeks just to get a waifu on ur desktop...
@Suleyman-kel
@Suleyman-kel Ай бұрын
VSCode is not an IDE, let alone Vim​@@redpillsatori3020
@emilnymann8723
@emilnymann8723 Ай бұрын
@@redpillsatori3020 What if I use neovim on arch and I'm hired?
@mlemImlem
@mlemImlem 3 ай бұрын
I'm different, I just hate mouses.
@kiwikemist
@kiwikemist 3 ай бұрын
Me too, little fuckers keep getting in my roof
@CoolestPossibleName
@CoolestPossibleName 3 ай бұрын
I use trackpad btw
@joe_ferreira
@joe_ferreira 3 ай бұрын
Mad Catz R.A.T. 5 anyone?
@vaisakhkm783
@vaisakhkm783 3 ай бұрын
My mouse is eaten by cat 😢
@andnekon
@andnekon 3 ай бұрын
I believe it's spelled mice
@Kira_x86_64
@Kira_x86_64 3 ай бұрын
First leaned vim when I was 12 years old. I had just put linux on my old Toshiba laptop. Graphics Interface didn't work off of the bat because old gpu had 16 mb of ram. That was the day that I went to the library and they the linux book brought home (literally a printed copy of the x11 manual) and they scolded anyone using nano to edit config files. That is the day I became a man.
@Kira_x86_64
@Kira_x86_64 3 ай бұрын
By the way. The x11 manual did nothing. Not what I needed. I should have just used just asked someone. I don't remember how I got it working but I still remember how it felt to see gnome boot up for the first time. Also, pro tip, if you think it is a problem with your windowing server ie a bug in x11 or Wayland, try looking at your desktop environment first. Generally x11 and Wayland are bulletproof and it comes down to a bad install or a all to commonly your desktop environment having a silly configuration for your hardware.
@occultsupport
@occultsupport 3 ай бұрын
you were a 100 years old at 12. I respect you (I use micro, Im a beta rn)
@Rudolfucius
@Rudolfucius 3 ай бұрын
your story doesn't add up.
@Kira_x86_64
@Kira_x86_64 3 ай бұрын
@Rudolfucius Yes. Left out a lot of context. I am only 17 now. I am a Math&CS major at college. I am a little ahead of the curve. The laptop was made in 2000 so it was really slow. As for using the X11 manual, I am pretty sure it wasn't the actual x11 manual, just from what I recall it was written like a manual and was about the protocol and not about guis. Sorry for any confusion, I am not good at collecting my thoughts before writing comments and stuff.
@LordMegatherium
@LordMegatherium 3 ай бұрын
@@Kira_x86_64 I'm not trying to suss you out: if you somehow have the need to spin yarn that's your thing, so sincerely: the numbers don't totally add up from a cursory google search the Satellite 4000 series seemed had 2 MB of VRAM and the 5000 had 32. Doesn't really matter. If you at your young age somehow made that kind of a junker work: I respect you for that kind of stubbornness although I'm somewhat assuming that that was born out of necessity in a way. Who cares. Go hard, go far!.
@Yawhatnever
@Yawhatnever 3 ай бұрын
The cursed ones use Vim from a VS Code terminal moved into the editor area.
@robosergTV
@robosergTV 2 ай бұрын
as one should. VS code has co-pilot chat which neovim lacks. Also Git and debugging UI and other plug-ins not in neovim
@ristomatti
@ristomatti Ай бұрын
​@@robosergTV Or tmux split pane and a TUI for GPT chat (e.g. elia). There's Neovim debugging plugins as well. With that said, I use mostly JetBrains and Helix back to back depending on the task I'm doing. Debug, complex rebase, refactoring -> JetBrains. Quick edits or system config -> Helix. ssh to a server -> Vim. Heck, I even use VSCode for some stuff. None of them fit well for all use cases to me.
@Suleyman-kel
@Suleyman-kel Ай бұрын
​@@robosergTVthat's.. not what he means
@jimshorts4317
@jimshorts4317 3 ай бұрын
If you need to be fast, you have a very different job than 80% of software engineers.
@jonforhan9196
@jonforhan9196 Ай бұрын
80-20 rule
@gileee
@gileee Ай бұрын
More coders than software engineers.
@remrevo3944
@remrevo3944 3 ай бұрын
24:05 There is also to paste the content of a register in insert mode. It's pretty useful if you need to paste the content of some special register like q, for example when writing/debugging macros.
@StrongestNerd
@StrongestNerd 3 ай бұрын
I received the Kinesis keyboard last week, and my wpm dropped from 80 to 10, lmao. I am progressing slowly and using my pinkies more than ever. Solid recommendation.
@-weedle
@-weedle 3 ай бұрын
dropped all the way from 90 to 40 myself when i switched and started properly using my kinesis pro and made some nice custom layers. Now I can consistently type 130wpm and it feels lovely
@SoreBrain
@SoreBrain 3 ай бұрын
I switched to qwerty and touch typing and went from 10 to 60 wpm in one week but it was rough
@chrishoppner150
@chrishoppner150 3 ай бұрын
Took me about 2 weeks to get used to my Ergodox. Hang in there, it gets better (and then even better)
@frostytf2
@frostytf2 3 ай бұрын
Yeah mine went from 130 to about a solid 8.. Came back up to about 80% after a few days though.
@matthewdouglas2373
@matthewdouglas2373 3 ай бұрын
Isn't the whole point to not use pinkies too much
@maxwebstudio
@maxwebstudio 3 ай бұрын
The ability to select, edit, delete, copy - between or around anything : < ... >, ( ... ) , [ ... ] , { ... } , ' ... ' , " ... ", ... , etc... feels natural and way more ergonomic (and efficient) Make a change inside parenthesis : just ci( or ci) that stands for c.hange i.nside ( ) Copy what is inside the quote with the quote : ya' or ya" : y.ank a.round " " Amazing
@morgaelyn
@morgaelyn 2 ай бұрын
Why use ci( when you can use cib? Saves a shift press. :)
@2Fast4Youtube
@2Fast4Youtube 3 ай бұрын
These bots are so fast to comment because the use vim
@stuvius
@stuvius 3 ай бұрын
I've spent more time configuring VSCode than Neovim. I just followed Typecraft's noob playlist for setting up your own Neovim config from scratch, and it got me 85% to where I wanted. I just try to use as few plugins as possible and I often end up using the default keybindings for the plugins, so my config is very basic and intuitive.
@maximofernandez196
@maximofernandez196 3 ай бұрын
the same for me. Typecraft helped me a ton to learn how things worked. I just recently jumped to kickstart, I also like it a ton
@mattymattffs
@mattymattffs 3 ай бұрын
Dude, how. Vs code is install and go.
@stuvius
@stuvius 3 ай бұрын
The default keybindings and behaviour did not fit me at all. I had to spend a lot of time setting up comfortable keybindings for navigating the terminal and tabs.@@mattymattffs
@asdjzcx2619
@asdjzcx2619 3 ай бұрын
​@@mattymattffs Shh he just wants to feel better due to shitty ide, he cant process facts
@hamm8934
@hamm8934 3 ай бұрын
@@mattymattffsi always have problems with lsps and extensions memory leaking on vscode. Also projects of enterprise size slow down vscode so much.
@lucaslopes1260
@lucaslopes1260 3 ай бұрын
Fun fact: "vim" is Portuguese for "I came." (as in, "arrived") Brazil mentioned!
@redpillsatori3020
@redpillsatori3020 3 ай бұрын
I came (as in "I came")
@zyriab5797
@zyriab5797 3 ай бұрын
Brazil mentioned 🇧🇷
@annaczgli2983
@annaczgli2983 3 ай бұрын
It's not about the speed; It's about the flex.
@TurtleKwitty
@TurtleKwitty 3 ай бұрын
To pastein insert you can " instead of p it's especially useful when dealing with the other registers casue it's direct so + is clipboard rather than "+p
@SoreBrain
@SoreBrain 3 ай бұрын
I absolutely hate repositioning my arm for the mouse. Vim motions I'm coming!
@johnyepthomi892
@johnyepthomi892 3 ай бұрын
Mouse is for managers
@CamaradaArdi
@CamaradaArdi 3 ай бұрын
I just like working from my bed and the trackpad is bad. That's why I use vim
@chill8873
@chill8873 3 ай бұрын
Its replaced with esc
@henry_tsai
@henry_tsai 2 ай бұрын
BUY A THINKPAD!!! Okay just kidding, but really you can consider it, or get that thinkpad style keyboard which has the trackpoint.
@susiebaka3388
@susiebaka3388 3 ай бұрын
I use vim because I switch between headless Linux often. I have nested tmux and screen, vim makes it the icing on the cake
@s3rit661
@s3rit661 3 ай бұрын
2:37 Nah, thank you, i'll keep my jetbrain product
@kirkwolak6735
@kirkwolak6735 3 ай бұрын
My first big software purchase was literally the BRIEF (emacs port) editor for DOS! I Could work so efficiently in it... NOW I understand your VIM love...
@davidpsmith77
@davidpsmith77 3 ай бұрын
Surround is ace. For the first two weeks of using it I kept saying to myself "You suck, I win" to help me remember how to use it. I think the docs says the mnemonic is meant to be "You surround inner word" but I like mine better. Great vid!
@nevelis
@nevelis 3 ай бұрын
10 years ago coding in Vim with no X11 because I was running VMware + NSX stack on my laptop and needed all the RAM I could get, 1920x800 SVGA, decent custom console font, raw doggin it on the terminal
@IndigoTeddy
@IndigoTeddy 3 ай бұрын
I may not be good at Vim (yet), but at least I can edit text and write-quit the editor w/out force-closing the terminal. Pretty cool, even though I'm still stuck on the Nano and VSCode mindsets.
@PraxisPragma
@PraxisPragma 3 ай бұрын
Guys, VIM is parkour for text editing. It's a bunch of weird yet smooth motions that get you from A to B in the most efficient way possible.
@robertfox4114
@robertfox4114 3 ай бұрын
The thumbnails aesthetics are getting better and better!
@josegabrielgruber
@josegabrielgruber 3 ай бұрын
That's a cool article, focusing on how does VIM works and the reasons to use it; great for a beginner
@tenbitube
@tenbitube 3 ай бұрын
Fun fact there is some science behind a clean room and helping stay focus with adhd. The gist of it is that it takes a lot of will power for your brain to ignore something. Similar to how you feel exhausted from ignoring your feelings. So minimizing what you need to ignore CAN help concentration
@orterves
@orterves 3 ай бұрын
But what if the distractions are coming from inside my brain
@smnomad9276
@smnomad9276 3 ай бұрын
That is a solid take.
@hamm8934
@hamm8934 3 ай бұрын
My life
@moonasha
@moonasha 3 ай бұрын
makes sense. I always got the most homework done at the library where there were no distractions
@Zipperheaddttl
@Zipperheaddttl 3 ай бұрын
As someone with ADHD and who is also naturally very messy, there is a massive correlation between my mood and the tidyness of my house. So I'm depressed all the time lol.
@alaouiamine3835
@alaouiamine3835 3 ай бұрын
I really enjoy these discussions more that anything ❤
@HyvinHiljaa
@HyvinHiljaa 3 ай бұрын
i started to use vim motions cuz' i was writing some html(react) and my inner-hand started to pain. basically opening and closing html brackets and moving to next line is really painful without vim. your hands goes to mouse or arrow keys too much and that occurs pain. so i took the advice and start vim motions on vsc and my pain is gone. for me vim is not speed issue, it is medical issue.
@Conman9310
@Conman9310 3 ай бұрын
Completely agree; after switching to vim motions myself it feels like an ergonomic necessity.
@zyriab5797
@zyriab5797 3 ай бұрын
Same here! Vim + Colemak + Split keeb + trackball + standing desk. It's all about that sweet sweet ergo, baby
@smnomad9276
@smnomad9276 3 ай бұрын
@@Conman9310 How long did it take you learn them?
@Conman9310
@Conman9310 3 ай бұрын
@@smnomad9276I'm barely getting started, but I was already as productive as I was without them after abt a week
@zeocamo
@zeocamo 3 ай бұрын
the insert in insert mode, you can use the ctrl-r" for paste reg. and " for the current clipboard
@poweruser64
@poweruser64 3 ай бұрын
4:11 I couldn't touch type until I started using vim. Used to type at 10 to 20 wpm (didn't feel good about it either), but within a year of starting to use using vim I was consistently hitting 40 to 50 wpm. This taught me a really valuable lesson, that it's a lot easier to learn something when there's a strong immediate application for it. I don't know how true this is for others, but it's certainly true for me.
@vinialves12362
@vinialves12362 3 ай бұрын
I know the basics of Vim motion but I haven't set up a workflow I'm proud of. I simply downloaded Nvim Kickstart and be having fun with it.
@tobiadeniji6630
@tobiadeniji6630 3 ай бұрын
I started out as a sys admin and using Vi/Vim was a necessity. I found myself working a lot on old *Nix servers via SSH and no matter how old the OS version was, there would always be Vi or Vim installed. Nowadays I have transitioned into cloud engineering but old habits die hard.
@patrickoberholzer4278
@patrickoberholzer4278 7 күн бұрын
Young programmer here: the history of my system setup has been the following on loop: 1. Huh. That thing looks weird and hard. 2. Why would I ever need that, I'm fine now. 3. Fine, I'll try it. 4. Pain 5. OMG THIS IS AMAZING
@Parker8752
@Parker8752 3 ай бұрын
I kinda like helix, but I don't like the whole select then act way of doing things. I prefer the press an action, then say where to do it. I've also used the emacs default bindings, and they're ok (I could see them being easier to use on layouts like dvorak), but I always come back to evil mode when I'm using emacs.
@khalidowlwalid4330
@khalidowlwalid4330 3 ай бұрын
1:38 He highlighted the whole sentence 1:48 Decides to obliterate it by missing out the first and last letter. Proceeds to continue doing it for the rest of the vid
@wumwum42
@wumwum42 2 ай бұрын
10:23 I used nvim and switched to helix since I really like the features helix provides ootb. The selection-first model amd key popup especially helped me learnig the keybinds. After having to use vim keybindings for IDEs I tried switching back to nvim but wasnt able find a way to make a setup as good as helix, so I started using both instead and it isnt nearly as confusing as I expected.
@spookemsmagoo4u
@spookemsmagoo4u 3 ай бұрын
Its like saying I use a rotary phone because its more kinetic, its fun
@EzBz982
@EzBz982 3 ай бұрын
I started learning Vim in a browser game called Vim Adventures before adopting vim keybinds in VS code in my work before finally adopting Vim entirely. There’s no going back.
@nerdycatgamer
@nerdycatgamer 3 ай бұрын
similarly to how prime switched to dvorak and kinesis because of wrist pain, i get pretty bad shoulder pain, and switching from mouse to keyboard exaserbates that, so i prefer tiling wms, terminal applications, and, of course, vim. i've actually found that having my wrists close together (how they get put on a small-ish qwerty keyboard) is more comfortable for my shoulders (and my wrists dont notice a difference between it and ergonomic setups), versus having them spread out.
@zyriab5797
@zyriab5797 3 ай бұрын
I found that the angle mod of Colemak on an ISO keyboard did wonders on a regular keyboard, regarding wrist positioning and stress mitigation.
@bentomo
@bentomo 3 ай бұрын
As someone with ADHD, it's not just about the going faster and having fun, but not needing to touch the mouse and get distracted with constant pings and notifications. Every time I open outlook to look at my calendar, I get distracted by a new email, and when I go to look at my email, I get distracted by when my next meeting is. And slack is just as bad. The terminal is my safe focus space now.
@carchocolate93
@carchocolate93 Ай бұрын
As someone who's spent a lot of time playing guitar, do you think moving from home row to mouse and back is as much of a hurdle as people make it out to be? I hear people say they use vim bindings because they only want to touch the keyboard, and i kinda have to assume that the repositioning isnt a priblem because of countless hours of practice changing hand position on guitar and piano... Curious if any others share my experience or think otherwise
@pencilcheck
@pencilcheck 3 ай бұрын
Another better analogy: IDE vs vim is like factory worker vs creative artists. As a factory worker, you don't need specialized/personal tools, you just need the tools provided by the company. You are just a resource. However as a creative artists, you take control of your work creation, you need the right tools that can allow your maximum creative output.
@Slashx92
@Slashx92 3 ай бұрын
Not that into the duality but I agree. Even someone like me, doing erp automations, can have they joy of using tools that makes me do my job more comfortably (that said, I use vim motions with vscode in my work machine, but it’s a compromise)
@mjiii
@mjiii 3 ай бұрын
I'm not sure which one you're saying is the factory worker in that analogy. The analogy could be made to work both ways depending on what the person making the analogy thinks about both the value of maximizing productivity vs artistic ideals and their opinion on vim/IDEs.
@jeanlasalle2351
@jeanlasalle2351 3 ай бұрын
Like a tool allowing custom extensions with custom views and rendering? Both have limitations, one more than the other and not the way you try to make it seem. Your metaphor can also easily be reversed.
@pencilcheck
@pencilcheck 3 ай бұрын
@@mjiii I'm not sure what is confusing about the analogy. e.g. If workers are on a conveyer belt working to get a food item out, the tools and stuff is designed and placed not by the worker, but by their employers. And the project is already taken shape, the workers have no choice for freedom of expression, they can only follow the assignments.
@pencilcheck
@pencilcheck 3 ай бұрын
@@jeanlasalle2351 I don't see how this is confusing. Factory means all the tools, process are designed by the employers. As a worker, you have to learn everything to use the tools correctly. Your freedom of expression is limited by the employers. They wouldn't want you to have whatever you want.
@ivanheffner2587
@ivanheffner2587 3 ай бұрын
Damned kids with their Improved vi. I was just out of high school when a coworker sat me down at an Irix workstation and said, “This is vi. You type a or i to be able to type. Press Esc to be able to move around. Use h, j, k, and l to move around. Press Esc and then :wq to save and exit.” That was the end of the lesson. Several years later, someone introduced me to this new-fangled “vim”. I didn’t see the point of the change (at first), but it was compatible with everything I already knew about vi so fine.
@likwidsage
@likwidsage 3 ай бұрын
I use arch, vim and a custom split kb btw. /micdrop
@Jamiered18
@Jamiered18 25 күн бұрын
In general, I just don't have the type of brain to remember massive combinations of keys, that sometimes even have no letters in common with the action they represent. I press the wrong keys, get no feedback on what actually happened and wonder what I've just activated or broken. I know a fixed number of keybinds in VSCode and rely on the fuzzy command palette for the rest
@AzCowboyOne
@AzCowboyOne 3 ай бұрын
From an engineers point of view... vi is on every *nix distro ever... so its on every box I have encountered in the wild.
@jsdutky
@jsdutky 3 ай бұрын
I was taught vi in college, but I didn't really learn in till years later when I borked my Slackware install so badly that termcaps wasn't working, and I had to learn ed/ex just to repair the installation. After that I decided to use vi because if was always available on any system no matter how restricted the system.
@AlFasGD
@AlFasGD 3 ай бұрын
The only reason why I have not (yet) learned to use Vim motions is that I'm already pretty blazing fast when writing code. Might eventually switch sometime in the future, but at the end of the day the speed at which I get things done is fast enough that learning Vim is not mandatory, as long as I've learned how to use the editors of my choice.
@denlogv
@denlogv 3 ай бұрын
How do you search for code in your dependencies in (Neo)vim? Let's say I have a package in my Python env and want to search for a specific class there, how do I do that? As far as I understand, you can only grep in the project directory
@packtrouble6270
@packtrouble6270 3 ай бұрын
My first experience with vim. I had to turn off my entire workstation to be able to get back to the desktop. XD
@TheCartographeraoe
@TheCartographeraoe 3 ай бұрын
Welcome to the vim side
@noredine
@noredine 3 ай бұрын
Vim? Walk in the park? Maybe a walk in the park where walking is like playing QWOP
@clarkytk
@clarkytk 3 ай бұрын
The first time i really knew what vim was about was when i paired with a dev who was junior to me and was insanely fast. Since then, I've had the same effect on others and it's just awesome. I love vim its fantastic
@adissentingopinion848
@adissentingopinion848 3 ай бұрын
9:37 I'd just like to interject for a moment. What you're refering to as Vim, is in fact, Vim/Vim-motions, or as I've recently taken to calling it, Vim plus Vim-motions. Vim-motions is not an editor unto itself, but rather another free component of a fully functioning Vim system made useful by the Vim keybindings, custom remaps and custom user commands comprising a full editor as defined by ThePrimagen.
@pav5000
@pav5000 2 ай бұрын
I'm trying to learn how to use nvim now but stuck with inability to find how to do some convenient actions which I was using in VSCode. Maybe there is some guide for switchers like me? For example in VSCode I comment/uncomment selected lines of code with ctrl+/ but there is no shorcuts for it in nvim. Also cannot find how to do proper interactive multicursor in nvim and actions like "create one more cursor at the next word that matches selection (ctrl+d in VSCode)".
@kenneth_romero
@kenneth_romero 3 ай бұрын
I'd argue VSCode is easier to get to a decent speed due to Ctrl/Cmd + Shift + p. you can just search what you're trying to do, and it says the shortcut keybinding on there, too. Eventually you'll just learn the keybind. (Though Kickstart has which-keys installed by default, so 🤷‍♂)
@AndersJackson
@AndersJackson 2 ай бұрын
Emacs keybindings are also useful in other places. Like standard keybinding in Bash etc.
@CielMC
@CielMC 3 ай бұрын
34:50 the way I put it is that Vim gives you a language to clearly express your intentions to the editor, it lets you think about what you want to do instead of how to do it, because you know if you press those keys it will do that thing.
@DominikZogg
@DominikZogg 3 ай бұрын
Typing efficiency. The number 100 in the priority list. It's like compensation for real developer skills.
@adarsh3196
@adarsh3196 3 ай бұрын
@ThePrimeagen After 5 years of neovim i moved to vscode i think you did config the vscode vim binding properly, my bindings exactly same as it was in neovim, i just don't have to deal with lsp (lsp is the reason i moved to vscode, managing it in vs code is much simpler)
@nickmills8476
@nickmills8476 24 күн бұрын
Using helix vs vim motions, is like the comparison between using markdown vs neorg formatting. One is ubiquitous, one is maybe slightly cooler, but not found elsewhere. Vim verb-motion syntax is more like the structure of the English language. Delete around paragraph -> dap. Helix uses the selection-verb order.
@DavidMorash
@DavidMorash 3 ай бұрын
I use vim, because vi was the only real choice of editor on SunOS when I was in university. 30+ years later it's served me well. I'm by no means an expert, but vim with a good set of plugins rivals and IDE for the work I do. And for all the complaints about vim being obtuse, yep sure is. Have you seen the javascript ecosystem?
@TwentyNineJP
@TwentyNineJP Ай бұрын
I really don't remember when I discovered or learned Vim (I'm barely in my thirties btw) If I were to guess, though, it was shortly after I installed Wubuntu on a whim during a rainy day in 2008. There was some period after that when I started looking into terminal programs (including web browsers) just because I thought it felt and looked cool to do things in the terminal
@lipepaniguel
@lipepaniguel 3 ай бұрын
Prime speaking Portuguese was the icing on the cake. And it wasn't bad, honestly.
@SimGunther
@SimGunther 3 ай бұрын
Very first point is laughable because there's plenty of text-related tasks like extracting the 4th field in a 100k+ line file that has a weird format which would take 40+ minutes to do manually that can be done with a macro in less than 30 seconds. So yes, it can actually make you many minutes faster if you learn a bit about how vim macros work.
@ThePrimeTimeagen
@ThePrimeTimeagen 3 ай бұрын
yes, i am tired of having that argument with people because they just _do not understand the macro_ therefore its ... well its a dead argument
@GreyDeathVaccine
@GreyDeathVaccine 3 ай бұрын
You could also learn awk 🙂
@Codigger-br2rt
@Codigger-br2rt 3 ай бұрын
I want Vim to place the cursor in the middle of the screen after searching. How do I center the cursor position after searching in Vim
@keggerous
@keggerous 2 ай бұрын
"Spending days to get a few seconds faster"... How about weeks to get up to 50% of your previous speed?
@henry_tsai
@henry_tsai 2 ай бұрын
Funny how I use vim is because... I learnt it first. The linux textbook that I read presented vim as THE "text editing command" (took me some years before realizing that the "commands" are actually independent programs that the shell searched up for me), and only after the lengthly tutorial it mentions nano as a side node, by that time I've already get used to the basics of vim and was intimidated by nano's completely different UI.
@ike__
@ike__ 3 ай бұрын
I rarely ever use my mouse even with IDEs like jetbrains and VSCode so I want to move to vim after my A-levels when I have more time
@pluto8404
@pluto8404 3 ай бұрын
the learning curve is steep but short. No different than starting a new video game and learning a few key combos. Id says 3 days of steady use to be as productive as other ide's, then only up from there as you level up skills and unlock new key combos and power moves.
@learnidotapp
@learnidotapp 3 ай бұрын
Im actually learning, vim and the way I could navigate super fast is nuts!, like it is literally taking me, less time, than reaching my mouse,
@tenisviejos
@tenisviejos 2 ай бұрын
I use Excel at work most of the time without touching the mouse and the productivity difference of using shortcuts and sequence or keys (to reach other commands in the ribbon bar) to get this done is ABYSMAL. I guess Vim Motios is the next step for me as my new responsibilities imply maintaining lots of code and configurations on existing files. This is an amazing video. Thank you!
@LeFlamel
@LeFlamel 3 ай бұрын
re: vim vs helix, I think ubiquity is a niche concern unless you spend most of your time SSHing into server environments that you explicitly don't have control over.
@ildarakhmetgaleev
@ildarakhmetgaleev 3 ай бұрын
I'm fine with SSHing to remote hosts and using basic VI and VIM. But recently started Nvim after half a year in Helix and could not remember how to use LSP in it. Helix has much better organised hotkeys and help dialogues everywhere.
@LeFlamel
@LeFlamel 3 ай бұрын
@@ildarakhmetgaleev yep, the few times I had to do it I used vi just fine. There's enough overlap that as long as I remember that it's verb-object and don't try to do anything fancy it's perfectly fine for changing a couple config/env vars.
@davr9724
@davr9724 3 ай бұрын
Title: VIM isn't about speed Video and Article: Look how much time VIM and VIM motions can save you
@zyriab5797
@zyriab5797 3 ай бұрын
I started using Vim motions to stop my growing TSI (pain in the backhand because of using arrow keys on a shitty MacBook keeb). I then moved to Neovim because it's better than VS Code for what I do and what I want tooling-wise.
@gavinvales8928
@gavinvales8928 3 ай бұрын
As someone who switched to daily driving helix, from nvim, I wish it used the same bindings and selection order every day. But I stick with it because it requires little to no setup, and the multi cursor support is legendary
@sub-harmonik
@sub-harmonik 3 ай бұрын
I feel like by the time you set up multicursor to do something that can't be done simply with a macro, search-replace, or visual block mode it isn't worth the trouble. but I also haven't used multicursor at all so idk
@hamm8934
@hamm8934 3 ай бұрын
@@sub-harmonik honestly, the multicursor problem in vim is a skill issue. Nearly all multicursor usecases can be solved with visual block mode and :s/[oldValue]/[newValue] or a macro, as you said.
@sub-harmonik
@sub-harmonik 3 ай бұрын
@@hamm8934 yeah I would think placing the multicursors correctly would be about as much work as find-replace if not on consecutive lines, and if on consecutive lines you can use visual block or execute a macro on each line easiliy
@barongerhardt
@barongerhardt 3 ай бұрын
@@sub-harmonik Among my favorites is to use /pattern, set up swap with :s/old/new, then use repeated / and . to go to next and apply, if needed. Just want to apply to rest of file, up, add ',$', done.
@UnderTrack_
@UnderTrack_ 3 ай бұрын
hot take: a software should have both a beginner-friendly and advanced-user-friendly setup; What I mean by that is that the core should be beginner friendly or have beginner friendly work arounds to achieve things, that should be the default of the software, and after you get more advanced and used to the software, there should be those more advanced user friendly controls and features, with a quick way to toggle from one to the other so that advanced users that make a new install don't loose time having to switch from beginner to advanced mode
@Slashx92
@Slashx92 3 ай бұрын
I agree but not entirely. The problem is that “beginner friendly” is almost always buttons and mouse usage. For something like vim, that has a manual and tons of “how tos”, is not really the target for that philosophy. It even has a chela sheet, a guide and a game to learn to use it
@Slashx92
@Slashx92 27 күн бұрын
@22:00 now I want to know what the kitty mantainer has said lmao. With your reaction to remembering that I feel it's bad but not cultore war bad, but bad person bad lmao
@carljosephyounger
@carljosephyounger 3 ай бұрын
A lot of people _cannot_ touch-type, due to all kinds of disabilities, and many programmers have tried it and decided it's not for them (it's uncomfortable, unless you sit upright, at a desk, using two halves of an expensive, ugly keyboard), so they use modal editors to be productive without having to type as fast.
@Electric_Bill
@Electric_Bill 3 ай бұрын
Prime says such people will never be good programmers.
@TheKastellan
@TheKastellan 3 ай бұрын
@@Electric_Bill I mean he doesn't he does have the nuance but he muddles it with so much "joking" insults and such that you can never really see that, like he expects you to know everything about him to know that is the case. Like I am sometimes confused whether he actually realises the way he speaks is quite alienating and unhelpful, I have watched his content because I quite like it but for the longest time I just didn't agree with a lot of his takes until I watched enough where I was like "oh ok that is what he means". (And even then I still don't agree a lot) Like how do you expect anything to actually constructively listen to you when you just put down anyone at every turn. I really hate when people just go "hard truths deal with it" because at least for me that has NEVER worked, for myself or for anyone I know, it always takes meeting someone in the middle to actually do anything.
@akak5128
@akak5128 3 ай бұрын
vim motion and tiling window baby, lets gooo
@GreyDeathVaccine
@GreyDeathVaccine 3 ай бұрын
A few years ago I first heard about tiling window managers. At first, this idea seemed unconvincing to me. I was lucky enough to come across a great introductory video to i3wm. I changed my mind in an instant. Using the computer this way has become the default for me. When I have to use someone else's computer it feels clunky for me.
@maximofernandez196
@maximofernandez196 3 ай бұрын
I agree with the visual distraction thing. I like vim because of that, there's almost nothing on screen but the text
@jacobwhitecotton
@jacobwhitecotton 2 ай бұрын
ok i at first didnt know what touch-typing is. after looking it up, genq, how does anyone code period without touch typing? that would take forever
@ConcerninglyWiseAlligator
@ConcerninglyWiseAlligator 3 ай бұрын
You made me notice that my journey of getting better at VS code progressively morphed my usege into pretending it was Vim. I'm currently attempting to make the alongside TJ's tutorial.
@demolazer
@demolazer Ай бұрын
I couldn't agree more. I'm new to Neovim and after installing kickstarter, I am able to see the hints, like if I press D I would see that $ is end of line, so takes me a second longer to enter. I can type pretty fast but have to sometimes shamefully look at the keys, I certainly can't touch type. I am getting faster and need less reminders over time. I still enjoy it and feel more productive than VS Code despite being a fair bit slower than others. It is not at all essential to be super fast IMO. It's also a myth that it takes ages to set up, when you can download entire init.lua files prepared with everything and copy paste a couple of other bits you want. There are NO excuses for not using Neovim everyone.
@alexschexnayder8624
@alexschexnayder8624 3 ай бұрын
I learned some basic vim motions a few years ago as a history major and started writing my papers in vim and then formatting in a different piece of software. Switched majors to CS, met a guy that uses emacs this semester. Switched to emacs. Couldnt get used to standard emacs editor behavior. Configured emacs to default to vim motions. What kind of rollercoaster have I been on?
@sfulibarri
@sfulibarri 3 ай бұрын
I don't think that's rare tbh, well relatively speaking. I've seen lots of comments on reddit and youtube where people want things like org mode but prefer editing in vim, emacs with vim bindings is a happy medium.
@alexschexnayder8624
@alexschexnayder8624 3 ай бұрын
@@sfulibarri honestly you're not wrong. Most people at my University (that aren't professors) are usually more weirded out by the major switch.
@gjermundification
@gjermundification 3 ай бұрын
3:14 appreciation - it's an important ability.
@kebien6020
@kebien6020 3 ай бұрын
On a previous video someone mentioned how he always avoids selecting the first and last character of everything he selects, and I'm now actually mad that I can't unsee it.
@renxula
@renxula 2 ай бұрын
I think it's because of all too common website layouts, where going 1 pixel beyond the text highlights the entire page contents.
@ttdat89
@ttdat89 Ай бұрын
I love Vim motions, but I can't live without VSCode's features and plugins. It just works without much configuration, so Vim extension is perfect for me
@kr0ncG
@kr0ncG 3 ай бұрын
I just want to thank you Mr. Primeagen, sir. Thanks to your videos, I did a trial by fire (after learning the very basics of vim motions a couple times) and torched VSCode. I forced myself to learn and use Neovim... It has been 8 months. I am the most productive I have ever been coding. And since I manage quite a few remote servers, it has just made everything buttery smooth. (i hated nano btw)
@defipunk
@defipunk 28 күн бұрын
It's about sending a message! /s No, but it's really about fun. The annoyance of some small fix, navigating around etc. stops me more frequently than I care to admit due to friction. This at least removes all the friction from editing. (leaves the 24h+ release time just to set up an experiment, though).
@vidal9747
@vidal9747 3 ай бұрын
"I am speed" ~The Primegen
@gjermundification
@gjermundification 3 ай бұрын
10:04 No! The amount of resources while operating [neo]vi[m] is like 5% compared to any GUI based IDE. I'm a part of the Discord OR Slack on Sunday crowd BTW. Not both.
@mo.G_2020
@mo.G_2020 Ай бұрын
I joined the community a few months ago and now I can finally say "I use Vim, btw"
@KevinLyda
@KevinLyda 3 ай бұрын
I was an emacs user in university ('92). Hilariously i learned vi in my only stint as a sysadmin while trying to build emacs on a unixware box. By the time I got emacs to compile I had learned enough vi that I could see the appeal.
@AndersJackson
@AndersJackson 2 ай бұрын
Who was it at 2:06 that used Emacs? I want that!
@KLR-3
@KLR-3 2 ай бұрын
4:10 I learned to touch type because I wanted to get the benifits of vim.
@vintner_
@vintner_ 3 ай бұрын
Prime reading portuguese is something I didnt know I needed in my life
@1Caja
@1Caja 2 ай бұрын
13:25 I bought a set of blank keycaps and switched to vim at the same time. Best decision I've made so far because it forced me adapt fast and the skill of typing while looking my girlfriend in her eyes makes even "I use vim btw" sexy
@stretchbrah5627
@stretchbrah5627 3 ай бұрын
Not a hot take, not a humblebrag, but I started learning VIM in my intro to programming course at Uni right now, and I have no idea how I lived without it beforehand. I'm a sysadmin by trade, and the amount of time I have spent in notepad++, kate, vscode, and other editors all seems pretty ridiculous now. I do think it's definitely an ADHD thing, because I have been hit real hard with that particular bat, but even just the experience of learning VIM has been awesome. Every day finding something and going holy shit, it can do that!? I have to use vanilla on the uni computers but on my machine I've got NeoVIM so most of my work gets pushed to git from uni, pulled to my machine, and worked on more with my very lightly riced nvim.
Why I Use Only 2 Vim Plugins
1:19
Nir Lichtman
Рет қаралды 15 М.
Developers On Edge
24:55
ThePrimeTime
Рет қаралды 196 М.
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 187 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 38 МЛН
From VSCode To Vim | Prime Reacts
26:11
ThePrimeTime
Рет қаралды 247 М.
Teaching Neovim From Scratch To A Noob
1:12:55
TheVimeagen
Рет қаралды 154 М.
Stop Typing Fast | Prime Reacts
11:09
ThePrimeTime
Рет қаралды 119 М.
VIM - I DIDNT KNOW THIS!!! | Prime Reacts
18:27
ThePrimeTime
Рет қаралды 93 М.
Falsehoods Jr Devs Believe Aboutr Sr Devs
34:07
ThePrimeTime
Рет қаралды 191 М.
Interview with an Emacs Enthusiast in 2023 [Colorized]
8:50
Programmers are also human
Рет қаралды 1,1 МЛН
Software Engineering Anxiety | Prime Reacts
23:29
ThePrimeTime
Рет қаралды 162 М.
A Jr Dev For Life?? | Prime Reacts
21:33
ThePrimeTime
Рет қаралды 280 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 270 М.
I Hate Rust | Prime Reacts
23:00
ThePrimeTime
Рет қаралды 145 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 140 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 55 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30