The Ultimate Beginner’s Guide To Learn And Master Vim

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

ความคิดเห็น • 99

  • @joseanmartinez
    @joseanmartinez  ปีที่แล้ว +153

    Hey guys, after uploading this video, I have sadly found out that Bram Moolenaar, the creator of Vim, has recently passed away. I am forever grateful for what he has built and the impact it’s had on my life as a developer 🙏🏽 Rest in peace, Bram.

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

      I just heard the news. As someone who has used Vim my entire career, I was shocked because I wasn't even aware he was ill. We all owe Bram Moolenaar a debt of gratitude for Vim and everything he did to support both Uganda and the Vim community.

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

    I just started learning Vim a couple of days ago and this is by far the best video on it I've found. Last week I also watched your tmux video and it was immensely helpful too. The way you explain things and the way you structure your videos really make things clear to me. Thank you very much.
    ¡Muchísimas gracias!

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

    I'm impressed that at 11:59 you included the 'ge' motion. I've been using vim a while, and only recently found out about 'ge' and 'gE', which are often very helpful.
    Another thing I've recently learned is 'gi' which jumps to the location where you most recently were in Insert mode, and puts you into Insert mode.

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

    7:46 I think a better way to think about "t" is "till" because it moves till the character you want.

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

      I hadn’t thought of that! That’s a really good way to think about it, thanks!

  • @danielvasquez3284
    @danielvasquez3284 9 หลายเดือนก่อน +4

    Many many thanks! there are plenty of tutorials out there, but the way and the speed you explain is awesome. I found other tutorials hard to follow because they are just going too fast in typing. You really take the time to explain in a good manner. Many thanks again!

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

    Hey Josean,
    I recently found your youtube channel not long ago. I'm about to start my journey at OSU and I noticed that you also went to The Ohio State University. I appreciate the quality help and advice you have produce with your youtube channel and it motivates me to do my best in college.

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

      Really happy to hear that! I’m glad you’ve found my videos helpful! Good luck getting started at OSU, I learned a lot through my experience there, go bucks!

  • @ayush138
    @ayush138 10 วันที่ผ่านมา

    Man .This is the only tutorial that felt smooth . Thanks a lot. Subbed

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

    This is an excellent video. There is a lot of resources with Vim reference. But that video helps to summarize everything. Thank you!

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

    It's thanks to you that I switched to Lunarvim as my main editor and installed Vim plugins on all my other editors. Thank you so much for all the hard work you put into your videos!

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

      That’s really awesome to hear! I really appreciate it and I’m glad the videos have been helpful!

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

    Exactly what I needed at this point of time 🙏🏼

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

      Awesome! Hope you find it helpful!

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

    great video! for some reason it was not showing up in youtube search when I looked for vim motions in January.
    would like to add you can use dib to delete inside brackets.

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

    This is no better than for this video as a tribute to Bram. Bram you'll forever be missed.

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

    Thank u to infinity and beyond! Not just another annoying tutorial about ricing ur neocon but FINALLY one on how to use it!

  • @ncpurge789
    @ncpurge789 2 หลายเดือนก่อน +2

    I've been using vim for a month now and I still can't get used to the HJKL keys. The arrow keys stay in muscle memory and since I use a regular full size keyboard instead of one of those fancypants split keyboards, the arrow keys are closer to my right hand, than compared to having to reach for the HJKL keys at the center of the table in front of me...

    • @TragicGFuel
      @TragicGFuel 28 วันที่ผ่านมา

      HJKL is literally where your hands when typing though.
      Vim is meant for people who can touch type

    • @ncpurge789
      @ncpurge789 18 วันที่ผ่านมา +1

      @@TragicGFuel yeah but majority of the time spent when coding, at least for me, is not actually typing anything but mostly thinking while my hands rest in neutral position.
      Usually while also navigating around the code as I think.
      It'd get tiring real quick if i had my right hand a few inches in front of the center of my body tilted towards the HJKL keys for hours on end.

    • @TragicGFuel
      @TragicGFuel 17 วันที่ผ่านมา

      @@ncpurge789 no one is keeping their hands on the keyboard or the mouse for hours on end, when working on code.
      I spend most of my time whiteboarding or designing.
      In that sense, it is irrelevant what input medium you choose. The appeal of vim is the speed of editing and how natural it becomes. You know how you don't think where you need to take the mouse, you do not think "I need to right click here to open the options", you just do it.
      After you give it enough time, vim becomes just that, but insanely more versatile. You think of the edits and your hands have already done it!
      One personal example would be the fact that I can attach a function/macro to execute wherever it finds a search term, and I can have it run on every file in a matter of seconds. Or the fact that you can have multiple things copied, in seperate registers, like a clipboard manager, but again, something you can mix and match with other commands, as you see fit.
      Want to write a macro that builds the same boring button UI, done. Want to find every instance of the old button and replace it? done. All of this works with vs code search and replace, and the mouse. But it saves you so much mental overhead, its very soothing, dare I say, fun, to edit.

    • @ncpurge789
      @ncpurge789 17 วันที่ผ่านมา +1

      @TragicGFuel Yes I agree with you on the upsides of using vim. I still use neovim and I use those features and theyre amazing. I'm not arguing against vim man...
      What I was saying is the combination of the following points unfortunately makes a worse experience:
      1. I navigate around my code a lot, and I like to leave my hands on the navigation keys.
      2. The navigation keys are the HJKL keys.
      3. The HJKL keys are placed at the center of a 17 inch keyboard, an awkward and unnatural position relative to the user.
      Following your mouse example, the analogy is that I'm not arguing against the use of a mouse, I'm saying that putting the mouse on the left side of the table when you're right handed makes for an uncomfortable experience.
      Yes taking your hand off the mouse when not doing anything and not resting your hand on it helps, but that's not the point now is it?

    • @TragicGFuel
      @TragicGFuel 17 วันที่ผ่านมา

      @@ncpurge789 I see my mistake, Ive been using a compact keyboard, and recently switched to a split one, I havent used a full sized keyboard in so long that I forgot how absolutely massive they can be.

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

    great video and great cheat sheet.
    by the way, for exiting there is a faster shortcut, ZZ = quit and save and ZQ quit without saving

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

    One of the best videos on the internet Josean, thank you so much for creating and charing it. Really appreciate.

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

      Really appreciate that! Happy to hear you found it helpful!

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

    Wow last week i was thinking that maybe i should learn vim this weekend and suddenly you just dropped this ❤️

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

      Awesome! I hope it helps you to get started!!

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

    Bro your thumbnail image is just perfect 👌you have this nice and unique aesthetics.

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

    Your neovim setup guide helped me move from vscode to neovim. I have been using neovim since and have made my own additions and changes to the config you provided. Thank you!

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

      That’s really awesome! Glad I could help!

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

      Would you go back ? I get learning vim for text editing. I use it daily and know the basics but as a full code editor I just couldn’t justify the use vs code.

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

      ​@@dixztube I dont feel the need to go back. Neovim and my plugins do everything that I could ever want from vs code and more! What does vs code have for you that neovim cannot replicate?

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

    hey man thanks for the vim from scratch guide you did before, it got me into nvim and am now enjoying learning programming again.
    just a tip for the new guys, just go with it. Force yourself to use it as your main and only editor then you'll be up in no time.

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

    Happy to see you're back! Just started watching your channel this past week and was sad to see your last upload was 5 months ago, thought I had found a dead channel lol

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

      Sorry I was gone for a while, have been pretty busy with work, but hoping to get back to uploading more often!

  • @mfahz4067
    @mfahz4067 8 วันที่ผ่านมา

    This is the most uncontroversial video ever (0 dislikes!)

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

    Best video i have ever seen on vim motions. kudos

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

    wow thanks, this is so easy to understand, i do love neovim because this man :)

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

    Excellent videos, very informative and well made. Congrats!

  • @xino101010
    @xino101010 21 วันที่ผ่านมา

    Gracias Josean! muy útil

  • @pope-pylinux-vi
    @pope-pylinux-vi ปีที่แล้ว

    Thanks for the great video! You may want to remap :nohl to something less verbose (I use Ctrl+n in my VSCode Vim extension)

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

    Really love this, thanks for helping out!

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

    Thank you for sharing your knowledge.

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

    What is the shortcut to switch between the folder side tab and the code tab?

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

    Great video. I've been using Neovim for years and didn't know them all (esp. text objects). So 🙏🤓

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

      Awesome! Glad you found it helpful!

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

    Awesome guide! Thank you very much.

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

    Way to Go Josean 💪

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

    Awesome high quality content! Just wondering if you ever tried lazygit and if so give a tutorial on it? :)

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

    Fantactic video. Thank you a lot.

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

    How do you get the filename as a tab (with an X)? I did follow your other video on how to setup Neovim on Mac but, when I open a file with nvim, I don't see the tab.

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

      Hey! I just added that to my config, it wasn’t in the video, you can use the bufferline plugin and in the setup options set the “mode” option to “tabs”.

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

    Excellent video, thank you!

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

    Good god you are back! Where you have beeen

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

      Hey! Just been pretty busy with work, hoping to get back to uploading more often!

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

    Super cool! Many thanks!

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

    hey, Wellcome back,

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

    Mr Vim himself passed away these days, with his last ESC :wq

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

    finally , thanks for NOT quitting..

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

      hahaha yes I haven’t quit! I’ve just been really busy these last couple of months. Hoping to get back to uploading more.

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

    Great educational video yet again 👏

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

    Hey @Josean, g+f shortcut not working in your neovim setup can you check if something has change after any update

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

      I’ll have to look into that, I’ve transitioned away from lspsaga to a simpler setup, hoping to make some future updated videos on some changes I’ve made. Thanks for letting me know!

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

      @@joseanmartinez It will be great if can share that transition as it can help a lot of people like me who are following your videos and working with vim , thanks for the fast reply btw

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

    hi, Which the app name to record desktop?

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

    Such a great tutorial!

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

    awesome video, I've a question teacher, what if I want to replace a word inside a function or event inside a for loop, with %s/word/replaceWord/g will do in the whole file, but is there a way to indicate to replace just in specific range?

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

      You can use visual mode to select the lines and then run :s (without %) to change within the selection

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

      @@Subbeh2 thanks mate!!! really appreciate it.

  • @phuc-party
    @phuc-party ปีที่แล้ว

    hey, did anyone here actual setup configuration for graphql successfully? I can't make graphql Lsp work?

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

    Waaaaait a moment, did we meet in a YCombinator company interview in the past?

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

      Hey! I’ve never been to YCombinator so you might be confusing me for somebody else, nice to meet you though!

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

    te amo amigo aprendo mucho contigo rey

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

    Loved the colorscheme, what is it ?

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

      Hey! It’s called nightfly. You can find it here: github.com/bluz71/vim-nightfly-colors

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

      Thanks @@joseanmartinez !

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

    Thank you for this

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

    Thanks!

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

    Rip Bram

  • @s-xj6ju
    @s-xj6ju ปีที่แล้ว

    please make an updated video champ from scratch

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

    make a video on how to use neovim as beginner

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

      Hey! Thanks for the feedback! Are you referring primarily to configuring/setting up Neovim?

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

      yes sir
      @@joseanmartinez

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

    very good 👏👏👏👏

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

    hey you are back

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

      Yes! Been really busy the past few months, hoping to get back to uploading more often.

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

      @@joseanmartinez awesome bro👍

  • @SS-wl7od
    @SS-wl7od ปีที่แล้ว

    great video
    but the amount of time i will spend on perfecting is not worth it, instead i will go with the tools which can get my job done.

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

    It is not vim, it is neovim.
    Actually, they should be distinguished.
    It may seem like an accusation, but the two are becoming quite different in terms of internal APIs, etc.

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

      Neovim and Vim are definitely different, but when it comes to this specific video, all of the concepts apply to both of the editors and almost all of the concepts will apply to using Vim as a plugin as well.

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

    Still waiting for that lazy setup you promised me ;) @josean

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

      hahaha I have to check lazy out, haven’t switched from packer yet, will be looking into it somewhere down the line