VIM shortcuts but they keep getting crazier

Sdílet
Vložit
  • čas přidán 22. 11. 2022
  • Connect with me on 'em socials:
    Twitter: / amantinband
    LinkedIn: / amantinband
    GitHub: github.com/amantinband
    Support me on Patreon: / amantinband .
    #vim
  • Věda a technologie

Komentáře • 43

  • @SokarRomania
    @SokarRomania Před 10 dny

    I am stil at the time before commiting full to using vim and C#. Mainly of course because I have a lot more to learn about setting up the linter, etc. That being said, I am learning more and more and I'll get there. Nice video !

  • @murtadha96
    @murtadha96 Před 3 měsíci

    Thanks for that man, I actually learned some new things I didn't know about Vim :)) I like your style in explaining things and recapping

  • @fabricehategekimana5350
    @fabricehategekimana5350 Před rokem +9

    Incredible video! I learned so many things thanks to you.
    I can share a little thing I discovered last week: You can do recursive call with a macro.
    You just have to record your macro as usual and call it before quitting. For instance, if you record it in the "g" register, you just have to end your macro with a "@gq" and when you invoke it, it will call himself until the next blank line.
    It's useful when you don't want to count the number of time you want to use the macro.
    Thanks again for this great video!

    • @amantinband
      @amantinband  Před rokem +6

      Holy cow that’s crazy 🤯 Thanks for sharing!!

    • @serkan.bircan
      @serkan.bircan Před rokem +1

      Interesting.. How do you stop it then? 😄

    • @PontiacCZ
      @PontiacCZ Před 4 měsíci

      What do you mean by "It's useful when you don't want to count the number of time you want to use the macro."?

    • @fabricehategekimana5350
      @fabricehategekimana5350 Před 4 měsíci

      @@PontiacCZ I mean, I am at the line X and I know the pattern repeat itself M times (I don't because I don't want to count) So I use it recursivelly

    • @programmingloop7
      @programmingloop7 Před 14 dny

      ​@@fabricehategekimana5350And how do u stop it?

  • @mechwarrior83
    @mechwarrior83 Před rokem

    Great content, may the algorithms bless you!

  • @MkYentertainment
    @MkYentertainment Před 3 měsíci +1

    Is it possible to have a keyboard tracker on your screen so we can see the key you are pressing for vim? that will help a lot to learn! Thank you

  • @kmcdo
    @kmcdo Před 3 měsíci

    I don't know how I missed this video before, but god bless you sir!

  • @LoZioIAR
    @LoZioIAR Před rokem

    Hi Amichai, Thanks a lot for this video! Very clear and fast explanation! I've started using vim watching your videos! But how did you configure vim in vs code? I didn't enable the 'vim ctrl' and sometimes it's frustrating. Even the opposite is not the best for me...

  • @gabrielordonez7876
    @gabrielordonez7876 Před rokem

    A video on installing and configuring vim in windows would be interesting. good video.

  • @albankurti300
    @albankurti300 Před rokem

    Amazing! I was looking to learn more shortcuts for Vim, I definitely did not know the business.
    Question... Is there any easy way to disable yanking after deleting? I'd like it to function more as a normal copy/paste function. I will research this on my own but last time I tried I had no luck implementing this.

  • @jameskelly99
    @jameskelly99 Před rokem

    Very, VERY interested in your neovim setup for c# once you get it sorted

  • @ikkidarkrose
    @ikkidarkrose Před 2 měsíci

    thank you so much!

  • @youchab1598
    @youchab1598 Před 4 měsíci

    This is awesome! Thanks

  • @kesoBJJ
    @kesoBJJ Před rokem +1

    vim is awesome... dont know how i used to live without it :)

  • @gagnon124
    @gagnon124 Před rokem

    This blew my mind

  • @PraecorLoth970
    @PraecorLoth970 Před rokem +4

    I knew of the existence of all of these, but thanks for reminding me of tip #8. I'll certainly use it in the future. The increment/decrement shortcut is really something I never paid attention to, and which I don't think I ever will. It's funny we have different mnemonics for some commands. Like "ci(" and "ca(" are, to me, "change inside parentheses" and "change around parentheses", and "th" and "fh" are "to 'h'" and "find 'h'". Could you share your config? I looked into configuring vim for c# use (although in termux) and it looked so complicated I gave up.

    • @amantinband
      @amantinband  Před rokem +2

      Hahah so true 😂 I’m rewriting my vim config with lua and searching for c# plug-ins. I’ll share my config once it’s organized

    • @vricop
      @vricop Před 9 měsíci +2

      A better way to achieve this is by placing your cursor in the first 'h' in the first line, then enter column selection with '' move down as many lines as you want then 'U'. Done!

  • @user-si3nr8dj5p
    @user-si3nr8dj5p Před 6 měsíci

    thank you vere much

  • @blessdarah1256
    @blessdarah1256 Před rokem

    have you setup debugging for your configuration with Vim and C#

  • @sacharkin
    @sacharkin Před rokem +1

    Hi, that is very nice.
    Can you make a video how to set up vim on Windows (Powershell)?
    I am currently new at this and struggling with the setup 🤔

  • @JoseGarcia-qq6sk
    @JoseGarcia-qq6sk Před 8 měsíci

    This is brutal. I am using this

  • @florianhennig4778
    @florianhennig4778 Před rokem +3

    Instead of using visual mode in the normal mode command to select a character and then U one could also just use ~ to toggle between lowercase and uppercase characters.

  • @DrHeinzDoofenshmirtz
    @DrHeinzDoofenshmirtz Před rokem

    Is this a tool it is worth learning if you are just used to using the mouse in Visual Studio?
    It definitely looks quick, when you use it.

    • @amantinband
      @amantinband  Před rokem +1

      Definitely. Productively will increase significantly!

  • @chezchezchezchez
    @chezchezchezchez Před rokem

    Awesome tips. You didn’t mention that you can run vim in Visual Studio proper with a free vim Add in.

  • @meetingattender8132
    @meetingattender8132 Před rokem

    How do i exit vim tho

  • @mohammedthaier1718
    @mohammedthaier1718 Před 4 měsíci

    اصطورة

  • @DrHeinzDoofenshmirtz
    @DrHeinzDoofenshmirtz Před rokem

    You might not have converted me yet, but I have now started on my pilgrim journey and engaged in the steep learning curve.
    Unfortunately, CZcams comment section only supports Insert mode, so I am not learning anything right now, but I will try to Tab onto Comment button, if that is possible.

    • @programmingloop7
      @programmingloop7 Před 14 dny

      There's a vim plugin called vimium for chrome. It lets you use vim like controls to browse the internet. It's really helpful. Not only does it speed up navigating, searching, "clicking" links etc but you also practice vim

  • @anantawijaya1594
    @anantawijaya1594 Před 5 měsíci

    Holy sh

  • @FlaviusAspra
    @FlaviusAspra Před rokem

    All I learned was smashing.

  • @DaminGamerMC
    @DaminGamerMC Před rokem +2

    I can't get out of file in VIM 😫

    • @amantinband
      @amantinband  Před rokem +1

      😂

    • @amantinband
      @amantinband  Před rokem +3

      twitter.com/tesseralis/status/1592293632413138945?s=20&t=yfCWFalh5hJJ3t31-diQ3A

  • @SajadJalilian
    @SajadJalilian Před rokem +13

    There is something strange about dotnet developers, they are so addicted to microsoft products specially visual studio, It hurts when they don't know about things like "vim" or "make" etc

    • @amantinband
      @amantinband  Před rokem +7

      💯, I rarely see devs using vim within the MS ecosystem

    • @PeriMCS
      @PeriMCS Před rokem +3

      @@amantinband I use it for years. Vim plugin in every editor