Vim As Your Editor - Introduction

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 1.2K

  • @joaomachado9105
    @joaomachado9105 2 ปีที่แล้ว +3785

    remember folks, vim can seem hard to learn, but at least is more satisfying than learning a new js framework every few months :D

    • @vaisakh_km
      @vaisakh_km 2 ปีที่แล้ว +14

      XD ikr

    • @codenerd7823
      @codenerd7823 2 ปีที่แล้ว +24

      Maaan, spitting facts....

    • @killerdroid99
      @killerdroid99 2 ปีที่แล้ว +7

      vim is easy but emacs 😟

    • @semikolondev
      @semikolondev 2 ปีที่แล้ว +5

      Vanilla Framework is the best

    • @AbhishekKumar-qt1ow
      @AbhishekKumar-qt1ow 2 ปีที่แล้ว +28

      And it's gonna be relevant for much longer than an average JS framework.

  • @AustinMarlar
    @AustinMarlar 2 ปีที่แล้ว +2033

    I was trying to learn Vim motions for YEARS with little to no success. Then I hit the SUBSCRIBE button, and, holy shot, within MINUTES I was blazing through code with the power of coconut oil on my side. Thanks Prime, couldn’t have done it without you.

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +486

      The testimonies just keep coming in. I don't lie. I tell the truth, I'm glad that you've helped

    • @surv5k
      @surv5k 2 ปีที่แล้ว +27

      inspirational story :)

    • @kebman
      @kebman ปีที่แล้ว +7

      I already hit sub two videos ago, I had to use Vim to teleport back so I could do it all over again, but since I used Vim it was all BLAZINGLY fast!

    • @bhaveshp.dev0
      @bhaveshp.dev0 ปีที่แล้ว +1

      I don't have a reason to disagree somehow

    • @azena.
      @azena. ปีที่แล้ว +3

      I've not got subscribe yet and I can tell that my 1337 Vim skills are missing because of it. I know the moment I press subscribe then they'll get unlocked and that would be scary for the world, hence why I'm holding off.

  • @BigEyesLuigi1
    @BigEyesLuigi1 2 ปีที่แล้ว +1803

    A great thing about learning Vim is that you can say "i use vim btw" to every single person you've encountered. That feels awesome

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +576

      Sex Haver energy here

    • @WallaceThiago
      @WallaceThiago 2 ปีที่แล้ว +158

      Couple that with "I use Arch btw" and everyone looks at you like you're a god

    • @Gustaf_CyberPadaria
      @Gustaf_CyberPadaria ปีที่แล้ว +42

      @@WallaceThiago i use arch btw

    • @dnkreative
      @dnkreative ปีที่แล้ว +24

      there are actually no other reasons to "learn" it

    • @gustavojoaquin_arch
      @gustavojoaquin_arch ปีที่แล้ว +18

      I use Arch and nvim btw

  • @paudelvishal
    @paudelvishal ปีที่แล้ว +107

    Timestamps, Time stamps
    00:00 - Introduction
    00:25 - Vim Motion vs Vim the Editor
    00:48 - About the Video
    01:12 - Use Vim Mode in your current editor
    01:27 - Mistake when learning Vim
    01:49 - My approach to learning Vim
    02:05 - Subscribing will help in learning Vim
    02:18 - Modal Editing in Vim
    03:15 - Modes in Detail
    04:51 - Mixing numbers with motions
    06:11 - Commands in Vim
    10:55 - This lesson was the hardest part
    @theprimeagen

  • @ItzAnameOk
    @ItzAnameOk 2 ปีที่แล้ว +595

    Vim got me out of depression. Thank you Prime for showing me joy through Vim.

    • @pakane24
      @pakane24 2 ปีที่แล้ว +6

      Is this sarcasm? xD

    • @revadyhemanth9827
      @revadyhemanth9827 2 ปีที่แล้ว

      @Giant Gosling me too!

    • @chachan4142
      @chachan4142 2 ปีที่แล้ว +55

      @@pakane24 You'd be surprised how many times learning new things literally pull me out of the depth of my suicidal thoughts 💀 Random things like learning Vim, RegEx, LaTex, or some biological and geographical facts about cute animals.

    • @cyanide0081
      @cyanide0081 ปีที่แล้ว +9

      @@chachan4142 i'm glad you're better ❤

    • @vnshngpnt
      @vnshngpnt ปีที่แล้ว +7

      @@pakane24 Learning new things can trigger enjoyment and feeling of accomplishment. For devs learning new language/framework/editor is the same.

  • @mikezyiara2938
    @mikezyiara2938 2 ปีที่แล้ว +357

    I remember 2 years ago watching Primeagen using vim made me try to learn it too, I probably binged all of his videos back then. Within 2 weeks I was already proficient enough to go faster with vim than with mouse/keyboard, 2 years and a half later, probably the best habit I've built in my professional life. It does really make a change

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +100

      This is truly the best pitch for why someone should learn vim

    • @pinguino_de_noche
      @pinguino_de_noche 2 ปีที่แล้ว

      🐱👍

    • @Chiramisudo
      @Chiramisudo ปีที่แล้ว +6

      Does that mean I should put Vim on my resume? Will I get more interviews?

    • @bobanmilisavljevic7857
      @bobanmilisavljevic7857 ปีที่แล้ว

      ​@@Chiramisudoprobably should if you're a vimlord or ask chatGPT for another opinion

    • @bitesizeprogramming8612
      @bitesizeprogramming8612 7 หลายเดือนก่อน

      These timelines have me convinced!

  • @AndyQuinteroM
    @AndyQuinteroM 2 ปีที่แล้ว +606

    You don’t need to be as fast as Prime, even just a 10% improvement in speed over your current is very satisfying.

    • @wardm4
      @wardm4 2 ปีที่แล้ว +114

      Honestly, a 0% improvement in speed but where you don't destroy your wrists with a mouse is worth it.

    • @codedog2126
      @codedog2126 2 ปีที่แล้ว +10

      @@wardm4 No more limp wrist!

    • @AndyQuinteroM
      @AndyQuinteroM 2 ปีที่แล้ว +3

      @Dair Smith you're sounding a lot like a node js stan 🤔

    • @barefeg
      @barefeg 2 ปีที่แล้ว +4

      The problem is that I’m already 80% as fast as prime in vscode so using nvim is kind of annoying. But I’ll get there eventually

    • @NonBinary_Star
      @NonBinary_Star 2 ปีที่แล้ว +4

      @@barefeg Same. I feel similar. I'm gonna give VIM a shot b/c I'm curious + VIM seems esoteric👍🏿 so I'm gonna jump in. haha

  • @Ptaszqq
    @Ptaszqq 2 ปีที่แล้ว +199

    The most appealing thing with vim for me is that when I use vim I kinda feel more satisfaction from coding, trying to do stuff with as few keystrokes as possible is pretty much like playing the game.
    I was balzingly fast with VSCode, and switching to vim at first felt like a brain stroke. But after you overcome this initial moment it's jus clear pleasure. Also I became better with touch typing :)

    • @barefeg
      @barefeg 2 ปีที่แล้ว +3

      Same here. I’m still not able to leave vscode for that reason. Btw what did you do to migrate from vscode’s multi cursor? I hear in vim that’s not recommended

    • @Ptaszqq
      @Ptaszqq 2 ปีที่แล้ว +7

      ​@@barefeg yeah that was the part I was most afraid of, but I don't find myself needing multicursor as often as I did in VSCode.
      If I really need to change multiple instances I just go with :%s/word/changedWord/gc (or whatever flags you need), also I usually copy that word that I want to change so it's faster to just paste it after the first '/'. I really don't miss multiple cursor that much.

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +27

      I think this is a great mentality. It's about the joys of coding

    • @odinu
      @odinu ปีที่แล้ว +1

      For what people use multicursor for I usually do q to record a macro, do the operation I want. Then use @ to run that macro. Often with a search and a jump to next motion. If I recorded the macro to a, using qa, then I'll often just run the operation some times, like maybe ten: 10@a and then what I wanted to do has been done 10 times. There's also the way of using a visual cursor, and hitting capital I for insert, then it'll insert what you write on all lines at the same place.
      Basically, you do different things rather than multicursor.

    • @qlx-i
      @qlx-i ปีที่แล้ว

      @@barefeg kakoune has multicursor, helix is something like a fusion between vim and kakoune.

  • @brandonjapol9853
    @brandonjapol9853 ปีที่แล้ว +9

    I tried many times through my career to pick up vim, but then I hit subscribe on this video and now I can use vim fluently, I also can eat concrete, speak perfect German, everything compiles on the first try, my mother is proud of me and I am now dating a model, who rather appreciates the coconut oil

  • @zenshade2000
    @zenshade2000 2 ปีที่แล้ว +17

    The most important thing to grasp is that, while vim will seem hard for awhile, every skill "accumulates" into the foundation for bigger skills, and you'll never look back and think, "Learning that was a waste of time." Somehow, that process also does something to enhance getting into a programming flow zone, so there's knock-on effects above and beyond just being more efficient at typing code.

  • @ahmadali-yf6mb
    @ahmadali-yf6mb 2 ปีที่แล้ว +67

    man you're not just any professional programmer.. you're a grate teacher... with passion like this in every one of your video. every one will love programming

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +22

      :) ty ty ty

    • @human-ft3wk
      @human-ft3wk ปีที่แล้ว +11

      grate teachers are rare nowadays. there's big demand since grates nowadays are more sophisticated than ever. I often get confused trying to get the lemon peel for my pancake batter

    • @human-ft3wk
      @human-ft3wk ปีที่แล้ว +1

      @chrism6446 ik chris it's not that deep. Still bet Prime would be a great grate teacher tho'

    • @occultsupport
      @occultsupport 5 หลายเดือนก่อน

      @@human-ft3wk yeah you're right. Its cuz they dont get grate salaries. You need smth to motivate teachers to be grate

  • @kristianroebuck1659
    @kristianroebuck1659 2 ปีที่แล้ว +33

    I've been trying to learn Vim for 8 years and as soon as I clicked Subscribe all of the Vim motions instantly came to me. Fantastic work as always.

    • @brawldude2656
      @brawldude2656 หลายเดือนก่อน

      The Testimonies!!!

  • @Seselix
    @Seselix 2 ปีที่แล้ว +53

    I use vim everyday, so these basics are second nature to me. However, I wish that I had this sort of tutorial when I started.

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +30

      well, if you watch the other videos in this playlist you may be very pleased. They are very geared towards those who are experts. Its my thoughts and reflections on things vim.
      I still need to finish off macros and file nav, but for now, i am working on the basics

  • @Noob_Coder1234
    @Noob_Coder1234 6 วันที่ผ่านมา +1

    00:03 Become an expert at using Vim
    01:36 Vim is a model editor with four modes: normal mode, insert mode, visual mode, and command mode.
    03:08 Vim is a fast and smooth text editing program
    04:40 Emotion in Vim refers to movements that move the cursor.
    06:13 Vim commands: D for delete and I for insert mode
    07:51 Learn the basics of Vim
    09:25 You can copy and paste text using yank and paste commands.
    10:58 Learning Vim can be challenging, especially relative jumps and motions.

  • @jg_yro5845
    @jg_yro5845 2 ปีที่แล้ว +11

    Learning Vim, and more specifically learning from ThePrimeagen turned an interest into a full blown passion when it came to development and software. The cool thing about vim is it’s closer to a sport than really anything I can think of regarding computers.
    You literally can practice things and improve over time, and there’s always new things to learn. Then diving into Neovim and even other editors like emacs/helix becomes a personal journey of discovering your own likes/dislikes and workflows.
    10/10 worth the initial struggles.

    • @DavidJamesQ
      @DavidJamesQ 11 หลายเดือนก่อน +1

      Re: "You literally can practice things and improve over time, and there’s always new things to learn." Sure? If you are mindful of what you want to practice, and this is it, go for it. I've had phases where I switch keyboard layouts or editors. But I think it is silly to offer this justification as a reason to do Vim; it is tantamount to saying "Learn X so you can practice X!"

  • @earthling_parth
    @earthling_parth 2 ปีที่แล้ว +301

    To people not using vim, I can confirm that clicking the subscribe button does actually make learning vim easier. Trust me bro 😉

    • @roger0p920
      @roger0p920 2 ปีที่แล้ว +3

      I trust you 😀

    • @dangthanhthienan
      @dangthanhthienan 2 ปีที่แล้ว

      Yeah, I can also confirm that!
      Trust us, bro!

    • @RoryIsNotACabbage
      @RoryIsNotACabbage 2 ปีที่แล้ว +1

      Yo I coughed all over it and I'm still slow, what's wrong with me?

    • @jacobfreeland3303
      @jacobfreeland3303 2 ปีที่แล้ว +1

      @@RoryIsNotACabbage Your name is Rory.

    • @earthling_parth
      @earthling_parth 2 ปีที่แล้ว

      @@roger0p920 Thank you 😊

  • @ChristopherSalisburySalz
    @ChristopherSalisburySalz 2 ปีที่แล้ว +8

    I've been using VIM motions for over 10 years now (still learning a lot) primarily with VsVim for Visual Studio. I also use the VIM plugin for VS Code. Both are really good. I want to use NeoVim for my daily driver but my god it's a lot!! The amount of configuration is huge to get it to the point where I can be as productive as I can with the other tools. I've never been able to get it to that point so I use it for smaller tasks.

  • @asdqwe4427
    @asdqwe4427 2 ปีที่แล้ว +4

    I have been using Vim motions for a month or two and it is just amazing. First week was painful, second week was alright and after 3 weeks I was as fast as I had been before.
    Now I’m really comfortable in the patterns that vim motions is based on. I have caught myself going “I wonder if…” and then finding that yes, in fact it did work.

  • @scottiedoesno
    @scottiedoesno 2 ปีที่แล้ว +15

    The first round of these tutorials changed my whole editing paradigm. Excited to see what comes from the update!

  • @GregRobsonUK
    @GregRobsonUK ปีที่แล้ว +1

    This is an excellent introduction to the advantages of using Vim. Using the Vim plugin for VSCode almost broke me for three weeks when I went cold turkey, but now I'd never go back to trying to remember crazy keyboard combinations like CTRL+ALT+SHIFT+F6!

  • @daltonyon
    @daltonyon 2 ปีที่แล้ว +70

    I learning vim months ago with all of this tips that Prime give in others videos and what I can say is: YES, THIS WORKS!!!
    I started with VSCode plugin with hjkl and at some point you will need more.. and boom you start using NeoVim... and you will need find files, moving around project so I started use Telescope, but now I only want change between 2 or more files, so I started Harpoon... and things begin start more fast, focus and productive!
    I love vim, its funny and everyday you can learning a new thing. Certainly this will improve you memorization!!
    So Thanks Prime!!!!

  • @zachary_burrows
    @zachary_burrows 8 หลายเดือนก่อน +1

    I've recently discovered that the best way to learn something is to watch a video like this about 20 times while I practice. In school, you generally learn something once or twice and then start trying to memorize the important details to cram it into your brain. But I think a better way to learn something for the long term is massive repetition.

  • @TehKarmalizer
    @TehKarmalizer 2 ปีที่แล้ว +4

    Seeing vim motion basics laid out so plainly makes me wonder why I didn’t learn to use them years ago. I’m going to start learning them on a side project.

  • @toneyf
    @toneyf 2 ปีที่แล้ว +2

    I was using VSCode for years after its beta, but after subscribing to Primeagen I felt like I already know 80% of all vim commands, now I switched my editor with some complexities in configuration, but almost overcame them already!

  • @ozzyfromspace
    @ozzyfromspace ปีที่แล้ว +5

    I'm about to become the slowest coder ever with vim, but I think in the long term, learning the vim motions will be well worth it.

  • @eqprog
    @eqprog 5 หลายเดือนก่อน +1

    Hey man, genuine thanks for this. I started this morning as I had a good opportunity for some practical practice (deleting a bunch of old code blocks interspersed across a work application). I'm still a little slow but I can see how this will be much faster. Not taking my hands off my (split) keyboard without vim motions already makes a big difference. I'm going to be flyin' after I get the motions down.
    FYI to others starting out using the VSCode extension. There is a setting to to turn on 'smart' relative line numbers based on your editing mode. If you're in normal mode it will use relative numbers and insert mode will use absolute.

  • @ghsinfosec
    @ghsinfosec 2 ปีที่แล้ว +13

    I forced myself to switch to vim exclusively after watching your first series and it helped me tremendously! Now when I use any graphical text editor I have to clean up a lot of :w and vim motions, but it's worth it. Vim is the greatest!

  • @tobay9457
    @tobay9457 ปีที่แล้ว +1

    I use Vim since 2016 when I wrote my masterthesis in LaText, because it was a nice addon to learn Vim while just writing text and not code. I really felt into love with the motion and the fact, that I could get rid of the arrow keys while typing something. Also the fact that you just have a lightweight editor which could be set up to a huge IDE was an exiting thing at this moment. Today I use it especially as a plug in in VS Code and Visual Studio. The biggest advantages in my oppinion is, you can use the basics keystrokes on every unix based system and even on windows you can use the git bash for doing some quick changes/commits or so. You can change configurations on every linux server or wrtinting some commit messages while using git. The second thing is, that you can really get rid of the mouse, the arrow keys and most of the different short cuts of an IDE. Everywhere its pretty much the same, when you are using vim (commenting, saving, finding, navigation,...) and your hands are always in the same area of the keyboard, so no jumping with your fingers and that makes it pretty fast.... for those who wants to experience the benefits without learing all the stuff and practicing a lot, I reccomend Vimum as a browser plugin, for navigating through a webside without using the mouse. This works, so good, so smooth and you get an impression how it could be, if you use vim as an editor or plugin in your IDE.

  • @isaactfa
    @isaactfa 2 ปีที่แล้ว +7

    I finally went all in on using vim bindings in VSC**e just before finding your channel. I already miss motions whenever I'm not in a text editor, especially the VSC**e integrated terminal. So I will probably be eyeing nvim as my dev environment soon-ish. Great timing!

    • @roger0p920
      @roger0p920 2 ปีที่แล้ว

      For some team projects, I have to use VSC**e so I use neovim inside its integrated terminal for the most part.

    • @mishikookropiridze
      @mishikookropiridze 2 ปีที่แล้ว

      @@roger0p920 Oh no,
      please dont do that.
      Just run nvim on native terminal.
      Why is VSc**e required?

    • @kebabulon
      @kebabulon 2 ปีที่แล้ว +1

      lol

  • @pedrovivash
    @pedrovivash ปีที่แล้ว +1

    Thank you for evangelizing Vim, there really isn't enough Vim hero cycles on TH-cam and I just want to say, as someone who struggles with Vim, that I really appreciate your enthusiasm and voice and I hope you are happy, because man Vim is hard and I am not happy right now.

  • @unknownChungus
    @unknownChungus 2 ปีที่แล้ว +7

    Holy shit! Subscribing to PRIME actually makes learning easier. Thanks for the tip!

  • @torphedo6286
    @torphedo6286 ปีที่แล้ว

    Thank you for focusing on motions rather than the program, it does make it much easier to adjust. With this approach I've slowly migrated over to NeoVim for most things and Vim motions wherever NeoVim isn't available or practical.

  • @KettLovahr
    @KettLovahr 2 ปีที่แล้ว +3

    I already do use (neo)vim on the daily, but it's nice seeing such a good walkthrough of the basics! Hopefully this gets more people to learn and appreciate our ways 😌

    • @rikudouensof
      @rikudouensof 4 หลายเดือนก่อน

      Na. Still stuck with Visual Studio.
      Just here to understand what this world looks like.

  • @hellNo116
    @hellNo116 ปีที่แล้ว +1

    I find hilarious that I use vim on and off for small projects for years now and I still haven't learned everything that it has to offer. learning vim is an never ending journey apparently. nice video love your energy

  • @sprinklednights
    @sprinklednights 2 ปีที่แล้ว +5

    Thank you. I am a braindead minor, and even then, I learned a lot from this video already. Super excited for part two!

    • @sprinklednights
      @sprinklednights 2 ปีที่แล้ว +1

      @@richardlyman2961 ?

    • @sprinklednights
      @sprinklednights ปีที่แล้ว +1

      @@bobanmilisavljevic7857 Despide my name, I tend to not act like an emo

  • @slipcurve1410
    @slipcurve1410 2 ปีที่แล้ว +1

    thank you prime for the inspirational videos. vim changed everything for me. coding is such a pleasure now, i cannot ever go back.

  • @hamza72x
    @hamza72x 2 ปีที่แล้ว +4

    I migrated to Vim by your previous series (about a year ago)
    But, I will watch this series too.
    jazakallahu khairan 💐💐

  • @guitaripod
    @guitaripod 2 ปีที่แล้ว +3

    The world needs more Vim.

  • @BradleyBrown
    @BradleyBrown 2 ปีที่แล้ว +1

    Dude, I've been trying to figure out VIM and you nailed it into my head. Great delivery, thanks for doing this!

  • @thegarginator
    @thegarginator 2 ปีที่แล้ว +4

    I hit Subscribe and, would you believe it, it made learning 469% faster! Thanks Primagen!

  • @eikeimnetz
    @eikeimnetz 2 ปีที่แล้ว +2

    Please please continue this series, very good to understand and on point!

  • @Martin-rp8og
    @Martin-rp8og 2 ปีที่แล้ว +5

    "k will obviously go upwards" I feel I'm already starting to lag behind.

    • @Martin-rp8og
      @Martin-rp8og 2 ปีที่แล้ว +3

      I don't want to sound like noob, which I am, but isn't it more obvious to go upwards with the up key?

    • @octavioavila6548
      @octavioavila6548 5 หลายเดือนก่อน

      @@Martin-rp8og You can also use the arrow keys in Vim normal mode to move around

  • @shatterstone3045
    @shatterstone3045 8 หลายเดือนก่อน +1

    So I was just randomily watching your videos, after finding you on Tech Over Tea (Brodie's padcast) (I have also seen you in my recommended but never really watched your videos until Brodie's podcast), and then I find this video in which you mention a hjkl game, right as I was bingin your videos and thinking "Man, I'm good at (neo)vi(m) keys but I wish I could find a way to make myself start using hjkl and stick to it" and then you introduce your game! Felt like perfect timing for sure.

  • @Kaszanas
    @Kaszanas 2 ปีที่แล้ว +11

    Next lesson please:
    - How to move through directories
    - How to open multiple buffers/files at once
    - How to create a new file
    - How to move a file / multiple files
    - How to delete a file / multiple files
    Preferably in some kind of OS independent way.

  • @VictorYami
    @VictorYami 2 ปีที่แล้ว

    The timing of this video is perfect. I have just embarked in my journey to learn VIM. I've been wanting to dedicate time to learning it for years and now I'm completely determined to doing it.

  • @0xc0ffee_
    @0xc0ffee_ 2 ปีที่แล้ว +4

    I can confirm that by subscribing to the channel it made my learning faster and easier!

    • @katzetante5599
      @katzetante5599 2 ปีที่แล้ว

      same here

    • @ErikBackman242
      @ErikBackman242 2 ปีที่แล้ว

      I subscribed and went from fast to blazingly fast

  • @cliffordjuan7978
    @cliffordjuan7978 2 ปีที่แล้ว +1

    Thanks for those shortcut tips. Sharing this too might be helpful.
    # comment multiple lines
    - move cursor at the start of the line you wish to comment.
    - ctrl+v (visual block mode), move cursor down (j key) til last line to comment
    - shift+i (insert mode)
    - press # add comments to first line
    - press esc, # will to all the lines selected.

    • @bijoy_26
      @bijoy_26 5 หลายเดือนก่อน

      Big fan of spamming this technique

  • @im_cloudy
    @im_cloudy 2 ปีที่แล้ว +4

    After you showed the jumping (5:25) with I was immediately like "Woooo, I need this!".
    Currently I've been using AceJump plugin in Jetbrains IDEs, but it requires more keyshortcuts, which can be sometimes usable, but mostly not, in my case.

  • @jrosas24
    @jrosas24 2 ปีที่แล้ว +1

    I'm already at this exact level Prime, which I got from your FEM course! Just getting these basics down make a huuuuge difference in speed already. Looking forward to finally taking the next steps for more blazingly fast programming. Great content, keep it up!

  • @nodidog
    @nodidog 2 ปีที่แล้ว +4

    Tim Pope with a Pope hat 😂

  • @ikhyunan496
    @ikhyunan496 6 หลายเดือนก่อน

    My coding assessment proctor recommended this YT channel. So far I'm loving it just because of this Vim video.

  • @AxL456
    @AxL456 2 ปีที่แล้ว +5

    "..to someone who can become an EXPERT (shows picture of the king tpope)"
    Prime, your comedic timing is the best in the dev world (even if thats a low bar)

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว +3

      Best of the worst is still best

  • @hectorrbv
    @hectorrbv 2 ปีที่แล้ว +1

    perfect timing!! just started using vim a week ago, i can already see it’s amazing

  • @OfficialProjectSMP
    @OfficialProjectSMP 2 ปีที่แล้ว +8

    The biggest reason I use "a" over "i" sometimes is when your cursor is at the end of a line. "i" puts you before that last character meaning you have to arrow over if you want to appending to the end

    • @uldershelby7761
      @uldershelby7761 2 ปีที่แล้ว

      To avoid arrows and force myself to use hjkl, I switched escape/capslock keys (as it was set in the original keyboard Bill Joy used to create Vi) and it was the best thing I could've done. Vi was specifically designed for that. Now I just can't stand hitting Escape moving my hand all the way up. I just hit it with my pinky. I also remapped arrows to hjkl so that way I wouldn't get tempted to use them back then when I was learning Vi.. A game changer.

    • @maman14141414
      @maman14141414 2 ปีที่แล้ว +1

      @@uldershelby7761 hi I was really interested by the caplock thing could not figure out any good way to map it, any advice ?

    • @uldershelby7761
      @uldershelby7761 2 ปีที่แล้ว +1

      @@maman14141414 Sure. I just added this line to .xinitrc (not init.vim) because I don't use Gnome/KDE (in that case you need to add this to "Autostart Apps" or something like that and it should also work out of the box:
      setxkbmap -option caps:escape
      You'll never want to go back to the default Vim keyboard config.

    • @maman14141414
      @maman14141414 2 ปีที่แล้ว +1

      @@uldershelby7761 thanks bro i will sure try it

  • @paul1337x
    @paul1337x 2 ปีที่แล้ว +1

    As somone who only recently decided to switch to vim, even tho I am an administrator for a very long time now, i am grateful for this series👍

  • @felipe_ai
    @felipe_ai 2 ปีที่แล้ว +3

    I've been using vim for about 4 yars, using your workflows, tips, etc it has been my right hand, but since my field is now ML and data science, we need to plot and visualize metrics, curves, etc all the time, we're forced to use a cell based IDE like jupyter or vs code, it's so painful but I don't see any other way lol, I'm still usimg a vim emulator, but it hurts so bad haha, I'll still watch everythin you do :)

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว

      LETS GO!

    • @driden1987
      @driden1987 2 ปีที่แล้ว

      Pretty sure you can have an org doc in emacs do all of that, but it's a handful !

  • @NoLoginIdea
    @NoLoginIdea 9 หลายเดือนก่อน

    You can also do before CMD. Meaning something like 2d2j is valid and would delete 4 lines.

  • @attilasedon9593
    @attilasedon9593 2 ปีที่แล้ว +3

    I loved the relative number lines. Checked if I can do that in emacs, it turns out you can, and I am now a happy relative line user.

  • @Vashinator7
    @Vashinator7 2 ปีที่แล้ว +1

    I have been looking at setting up neovim for a while. Between this and your vimrc video, I definitely have a good starting point

  • @teej_dv
    @teej_dv 2 ปีที่แล้ว +4

    casually showing off you write rust too LUL

  • @sf-petru
    @sf-petru ปีที่แล้ว +1

    For every shortcut I saw in this clip, there is a common way to do it. As my job to help other when they get stuck, understanding the common shortcuts will help me write code on any machine of any colleague, no matter theirs editor ( if they don't use vim :)) ). I bet this is the standard kind of comment from someone who never used vim

  • @whatisrokosbasilisk80
    @whatisrokosbasilisk80 2 ปีที่แล้ว +4

    But, why tho

    • @ThePrimeagen
      @ThePrimeagen  2 ปีที่แล้ว

      if you have never seen a person work well in vim, then you would never understand

    • @whatisrokosbasilisk80
      @whatisrokosbasilisk80 2 ปีที่แล้ว +2

      @@ThePrimeagen Fake 10x developer shit sure is a great youtube brand, so I respect the hustle.

    • @angelluvslots
      @angelluvslots 7 หลายเดือนก่อน

      @@whatisrokosbasilisk80 skill issue, imagine touching ur mouse

    • @whatisrokosbasilisk80
      @whatisrokosbasilisk80 7 หลายเดือนก่อน

      @@angelluvslots The skill issue is being so hooked on hacker movies that it never occurred to you to actually accomplish anything with the ordinary tools instead jacking off with silly command line utilities.

  • @SloanStewart
    @SloanStewart 2 ปีที่แล้ว +1

    Finally got through an entire week using VIM and then switched back to VS Code for a particular reason. It physically and mentally PAINED me to have to stop and reach the mouse.

  • @JohnnysaidWhat
    @JohnnysaidWhat 11 หลายเดือนก่อน

    i keep coming back to this video every few months. Finally I am using vim daily now and slowly its getting better and better.

  • @Steliosgiannatos
    @Steliosgiannatos 5 หลายเดือนก่อน +1

    Holy moly, subscribing actually makes it easier

  • @domogdeilig
    @domogdeilig 8 หลายเดือนก่อน +1

    Im learning VIM just so in an interview I can pull out vim as the editor

  • @BryanSeigneur0
    @BryanSeigneur0 ปีที่แล้ว

    A more elegant editor for a more civilized (and resource limited) age. I remember editing config files remotely in nano....30 years ago. There was a time when special keys like arrow keys, backspace , Ctrl, etc, were totally hit-or-miss, what with so many semi-compatible terminal mappings. So vi saved you because it only used letters and punctuation. It didn't take me long to appreciate vi[m]. If you are a touch typist, you're automatically going faster on day one.

  • @VenkataSabbella
    @VenkataSabbella ปีที่แล้ว

    Thank you for doing this video. Made my jumpstart to vim. I could see the benefit of editing with vim as everything is mapped to a keystroke, instead of combination of keystroke and mouse clicks which I had to do with multiple editors I had to work with so far. Also excited to see this is supported in all editors using a plugin.

  • @LadislavMartincik
    @LadislavMartincik 2 ปีที่แล้ว +1

    The best tip I've used when learning the hjkl motions is to turn off the arrows. Changed my behaviour almost instantly.

  • @Konnuslahti
    @Konnuslahti 2 ปีที่แล้ว +1

    Thanks for mentioning/creating VimBeGood! I've now used Vim keybindings for almost a year and consider myself pretty proficient with them but did the "noob choice" of practicing with arrow keys. Think I'll spend some time with this to fix my muscle memory to work with hjkl. The game is actually stupid addicting for some reason 😂

  • @nevork7578
    @nevork7578 18 วันที่ผ่านมา

    Thanks a lot ❤ I learned vim starting with this video, and now it’s much easier to write code

  • @Matt23488
    @Matt23488 ปีที่แล้ว +1

    Very informative. For the first time ever, I find myself interested in learning Vim. I think I will go ahead and install that VSCode plugin.

  • @GlebEagle
    @GlebEagle 2 ปีที่แล้ว +2

    that's what i have been waiting for!!! Awesome!

  • @DaneArcher
    @DaneArcher 7 หลายเดือนก่อน

    Shortly after subscribing I was able to use my new-found knowledge of Vim and the word skip motion in particular to determine the last digit of pi (it's '1'!) Seriously, I've been shying away from Vim since my days as an Amiga user in the late 80's. Looking forward to learning more and getting my efficiency levels up and my mouse usage way down. Thanks!

  • @panthonyy
    @panthonyy 2 ปีที่แล้ว

    I've been trying to learn VIM for quite a while now, and my progress was very slow... Now that I'm subscribed to Prime's channel, my time-to-learn has decreased significantly. Thanks, Prime.

  • @meiliyinhua7486
    @meiliyinhua7486 10 หลายเดือนก่อน

    fun fact for 4:16 -- you can delay that damning realization by modifying the "repeat rate" (and delay until repeat rate) on your keyboard,
    this is something that starcraft players do to help their spam speed

  • @sumanmondal4251
    @sumanmondal4251 ปีที่แล้ว +1

    This is undoubtedly the best vim tutorial on the Internet.

  • @alphabasic1759
    @alphabasic1759 ปีที่แล้ว

    What’s really, really strong is the regex-based search and replacement and embedded storage in this. It makes vim an extremely strong text process tool.

  • @earthling_parth
    @earthling_parth 2 ปีที่แล้ว +1

    YASSS! Updated VIM series! Thanks Prime ♥️

  • @KCKingcollin
    @KCKingcollin 6 หลายเดือนก่อน

    Dispite using arch for over 6 years now, and after recently learning that people legitimately use vim and its not just a relic of the Linux operating system, i started using it for about a month just on my own as a replacement to nano, but this video has cleared up everything for me, and i now understand why its used so much, I can't even imagine not using vim motions now, and i haven't even used vim after watching this video yet lmao

  • @alexbecar977
    @alexbecar977 2 ปีที่แล้ว +2

    Using Vim motions and a jetbrains IDE is the best of both worlds for me.

  • @alphabasic1759
    @alphabasic1759 ปีที่แล้ว

    I love to see you doing this. I began with vi on various UNIX decades and ago and vim on Windows and Mac since. I fully believe it’s faster to use vim than most GUI editors. I also abhor emacs.

  • @pesterenan
    @pesterenan ปีที่แล้ว +1

    I started using Vim for VSCode, I believe it's only the motions and oh boy was I impressed, still learning little by little but each search and replace makes me giggle like a child xD.
    Thank you for showing me how to use Vim (motions) Prime!!! Already subbed!

  • @jkrigelman
    @jkrigelman 2 ปีที่แล้ว +1

    VIM's the best. I like seeing that a lot of modern editors are pulling it in.

  • @GoodHomeVideos
    @GoodHomeVideos 2 ปีที่แล้ว +1

    Someone: VSCode burned our crops, poisoned our water supply, and delivered a plague unto our houses!
    Crowd: HE DID??
    Someone: NO, but are we gonna stand around until he does??!

  • @Chiramisudo
    @Chiramisudo ปีที่แล้ว +1

    3:05 LOL!!! That gave me an idea for an escape room. 🤫

  • @ИванВелинов-у5п
    @ИванВелинов-у5п 2 ปีที่แล้ว +2

    started working with Nvim about 3-4 months now... It's awesome... hackerman

  • @matyaskocka7110
    @matyaskocka7110 ปีที่แล้ว

    I really enjoy how you say, that it is hard to move to Vim. It helps mentally, bcs one then does not feel so embarrassed. Thanks man!

  • @sunnyheheheh9401
    @sunnyheheheh9401 2 ปีที่แล้ว +1

    Thanks again your vim videos made my vimming a lot more optimized and I am still trying to improve luckily this video popped perfect 👌

  • @shanedetsch
    @shanedetsch 6 หลายเดือนก่อน

    Love how these videos are presented. Keeps my attention.

  • @romulo9454
    @romulo9454 ปีที่แล้ว +1

    I downloaded neovim and entered their tutorial, It's overwhelming at first for sure but I can already see why it is so popular and useful. I love this idea of not using the mouse to edit, although it will take a long time to memorize it

  • @tamatotodile
    @tamatotodile ปีที่แล้ว

    bruh, it's insane.. my mind is blown, I can't believe I've been missing out on this my whole life.

  • @KevinN44
    @KevinN44 10 หลายเดือนก่อน

    This nudge finally got me back to trying vim and this time round it’s not as hard as the previous 100 tries 😂. Thanks!

  • @wadecodez
    @wadecodez ปีที่แล้ว

    thought vim was a waste of time, then i started working for clients who change their mind every 5 minutes. found this video months ago, shrugged it off, came back. worth it!

  • @patmacalister
    @patmacalister ปีที่แล้ว

    I just subscribed and suddenly all vim motions just naturally come to me. Thanks for the video!

  • @MS-el8wj
    @MS-el8wj 2 ปีที่แล้ว

    Primeagen made me learn vim, now is two months that i am using vim plugins everywhere. And i love it. i am aiming to move to vim editor in future. great video prime

  • @shahriardhruvo4333
    @shahriardhruvo4333 4 หลายเดือนก่อน

    Man after watching this video I am sad that I can only increase the like count by 1. Some rare times I come across such videos in youtube. Thank you so very much man.

  • @thomasfrans1185
    @thomasfrans1185 2 ปีที่แล้ว +2

    Switched to Vim about three or four months ago and was around 10% as productive as normally, which was beyond frustrating. Around a month later, i was back to 100% productivity and now I'd say I'm at least twice as fast editing in Vim (not programming, just editing). When I had to switch back to Visual Studio for work, it felt miserable and extremely slow in comparison. All this to say, anyone can learn Vim, go for it, give it a try!

    • @hmsiegel79
      @hmsiegel79 2 ปีที่แล้ว

      There is an extension for Visual Studio, VsVim that adds all the Vim motions in Visual Studio. I've been using it and have been very happy with it.

  • @connorgray1805
    @connorgray1805 2 ปีที่แล้ว +1

    I like how you can tell he types using Dvorak by the keyboard spam

  • @CHENYanZhen
    @CHENYanZhen 9 หลายเดือนก่อน

    Just want to say thank you to you, Primeagen. Your video helps a lot!!! ❤