The Ultimate Beginner’s Guide To Learn And Master Vim

Поділитися
Вставка
  • Опубліковано 29 тра 2024
  • In this video, I share everything you need to know to learn and master Vim as a beginner. Vim has changed the way I work as a developer over the past couple of years and my hope for this video is to help you really understand the ideas and concepts behind everything so that you can learn how to take advantage of this powerful editor too! Whether that be in a full fledged Neovim or Vim setup or as a plugin in an editor like VSCode. Hope you guys enjoy it!
    ✍🏽 Vim Cheat Sheet: www.josean.com/posts/vim-esse...
    💻 Code Used In Video: github.com/microsoft/TypeScri...
    🚀 My Dot Files: github.com/josean-dev/dev-env...
    Help Support Me And The Channel: www.buymeacoffee.com/joseanma... 🙏🏽
    Neovim Setup Video: • How I Setup Neovim On ...
    ⏰ Timestamps
    00:00 - Introduction
    01:11 - Entering/Exiting/Saving
    05:11 - Vim Arrow Keys (hjkl)
    06:27 - Line Movements
    07:11 - Moving To Chars In Line
    08:58 - Word Movements
    12:19 - Paragraph Movements
    13:12 - Moving To Specific Lines
    15:01 - Movements for '[', '(', '{'
    17:05 - Moving Through Screens
    17:34 - Moving/Scrolling Leaving Cursor In Place
    18:04 - Search Movements
    18:58 - Moving Through Jumplist
    20:27 - Deleting Text (d)
    22:32 - Changing Text (c)
    23:09 - Repeating Changes with .
    23:56 - Replacing & Deleting Chars (r and x)
    24:38 - Copying/Yanking & Pasting Text (y and p)
    25:52 - Changing Character Case (quick note ab Visual Mode)
    27:36 - Text Objects (using i and a)
    30:38 - Search & Replace
    32:07 - Other Ways To Enter Insert Mode
    33:02 - Conclusion
    📧 Email for business inquiries: youtube@josean.com
    --------------------------------------------------------------------------------
    🖥️ My Desk Setup:
    💻 Computer & Monitor
    Apple 27” Studio Display for Coding & Video Editing: amzn.to/47YzRZt
    2021 M1 Pro Macbook Pro (mine): amzn.to/47XNhoC
    2023 M2 Pro Macbook Pro (newest): amzn.to/3qYHG0J
    🖱️ Mouse
    Apple Trackpad: amzn.to/45P0i1S
    Logitech MX Master 3s Mouse: amzn.to/3Z3bXIq
    ⌨️ Keyboard
    Cherry Corne Version 3 Kit: bit.ly/3UJgrjH
    Analyst Keyboard Case: bit.ly/3uyjIHQ
    Nice!Nano Microcontrollers: bit.ly/3FblL9L
    Gateron Ink Black V2 Switches: amzn.to/3YZ3cz9
    Batteries for Nice!Nanos: bit.ly/3uBmtrS
    Travel Case (Fits Analyst Corne Case): bit.ly/3Hmr7BR
    Gateron Ink Black V2 Switches: bit.ly/3VJToX4
    My Keycaps: bit.ly/3uHBbgV
    Blank PBT Keycaps: bit.ly/3UJhgJ6 or amzn.to/3UNQtLQ
    Planck PBT Keycap Set: amzn.to/3HopRhC
    You can also find some pre-built options and DIY kits on Etsy: www.etsy.com/search?q=corne
    🎧 Headphones
    Sony WH-1000XM4 Headphones: amzn.to/3sEJU65
    ----------------------------------
    🎬 My Video Gear:
    📹 Camera
    My Fuji xt3 Camera (only available used): amzn.to/3P4P1E7
    Recommended Cameras:
    Fuji xt5 (newest): amzn.to/3P0jMtK
    Fuji xt4 (used): amzn.to/3EmeUdt
    Fuji 23mm f2 Lens (great for video in smaller spaces): amzn.to/3L2L6pV
    Camera Field Monitor: amzn.to/3L2nrpW
    🎙️ Audio
    Rode VideoMic Pro+: amzn.to/45PecRC
    Overhead Camera/Mic Arm: amzn.to/45y8Ryl
    💡 Lighting
    Aputure Amaran 100d Keylight: amzn.to/47T4Y97
    Aputure Light Dome Mini II Softbox: amzn.to/3EstpMM
    Aputure Amaran Small RGB Light: amzn.to/3Pl6RnG
    IVISII Bright RGB Light: amzn.to/3EmfsA3
    ---------------------------------------------------------------------------------------------
    Links used in the description may be affiliate links. By clicking and/or purchasing from these affiliate links I receive a small commission (at no cost to you). This really helps me out in funding my videos and growing my channel, thank you for the support!
  • Наука та технологія

КОМЕНТАРІ • 87

  • @joseanmartinez
    @joseanmartinez  9 місяців тому +120

    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 9 місяців тому +6

      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.

  • @antonyanchev7112
    @antonyanchev7112 9 місяців тому +6

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +2

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

  • @treequin
    @treequin 9 місяців тому +2

    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!

  • @alejandrotarafaguzman8520
    @alejandrotarafaguzman8520 8 місяців тому +1

    Excellent videos, very informative and well made. Congrats!

  • @danielvasquez3284
    @danielvasquez3284 3 місяці тому +2

    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!

  • @zhvn89
    @zhvn89 9 місяців тому +3

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

  • @ayushkumar2436
    @ayushkumar2436 2 місяці тому

    Best video i have ever seen on vim motions. kudos

  • @gantushigsaruul2489
    @gantushigsaruul2489 28 днів тому

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

  • @hsthast7183
    @hsthast7183 9 місяців тому +4

    Exactly what I needed at this point of time 🙏🏼

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +1

      Awesome! Hope you find it helpful!

  • @N1mro8
    @N1mro8 Місяць тому

    Really love this, thanks for helping out!

  • @FrankPloegman
    @FrankPloegman 9 місяців тому

    Awesome guide! Thank you very much.

  • @akritworanithiphong
    @akritworanithiphong 9 місяців тому

    Great educational video yet again 👏

  • @mmlvx
    @mmlvx 2 місяці тому

    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.

  • @maguilecutty
    @maguilecutty 7 місяців тому

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

  • @codingwithrendi
    @codingwithrendi 28 днів тому

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

  • @juliosica2098
    @juliosica2098 9 місяців тому +4

    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  9 місяців тому +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!

  • @eldercirillo554
    @eldercirillo554 9 місяців тому

    Thank you for sharing your knowledge.

  • @benjaminbank384
    @benjaminbank384 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +1

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

  • @andrefgallo
    @andrefgallo 8 місяців тому

    Excellent video, thank you!

  • @JonnyJonvilleJonathan
    @JonnyJonvilleJonathan 9 місяців тому

    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  9 місяців тому +1

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

  • @gregpetrov6919
    @gregpetrov6919 8 місяців тому

    Super cool! Many thanks!

  • @stoicfloor
    @stoicfloor 9 місяців тому +1

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

  • @zenbrandon
    @zenbrandon 9 місяців тому +8

    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  9 місяців тому +1

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

  • @asgeirtj
    @asgeirtj 6 місяців тому

    Such a great tutorial!

  • @nasang7478
    @nasang7478 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +1

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

  • @satysin630
    @satysin630 9 місяців тому +1

    Pretty crazy timing this coming out the same day we lose Bram 😢

  • @mkum2141
    @mkum2141 9 місяців тому +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  9 місяців тому

      That’s really awesome! Glad I could help!

    • @dixztube
      @dixztube 9 місяців тому

      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 9 місяців тому

      ​@@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?

  • @TobiasFrei
    @TobiasFrei 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +1

      Awesome! Glad you found it helpful!

  • @jsjunior
    @jsjunior 9 місяців тому

    hey, Wellcome back,

  • @thepisewigeon
    @thepisewigeon 9 місяців тому

    Thank you for this

  • @pope-pylinux-vi
    @pope-pylinux-vi 8 місяців тому

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

  • @annakarolinafranz5946
    @annakarolinafranz5946 Місяць тому

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

  • @inteliconn995
    @inteliconn995 9 місяців тому

    Thanks!

  • @leroykylian4285
    @leroykylian4285 9 місяців тому

    te amo amigo aprendo mucho contigo rey

  • @annakarolinafranz5946
    @annakarolinafranz5946 9 місяців тому

    very good 👏👏👏👏

  • @vladimirpoma4452
    @vladimirpoma4452 9 місяців тому

    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 9 місяців тому

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

    • @vladimirpoma4452
      @vladimirpoma4452 9 місяців тому

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

  • @therollingambit5222
    @therollingambit5222 6 місяців тому

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

  • @ariunboldoyungerel6649
    @ariunboldoyungerel6649 9 місяців тому

    Good god you are back! Where you have beeen

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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

  • @vohuynhvinh
    @vohuynhvinh 8 місяців тому

    hi, Which the app name to record desktop?

  • @phuc-party
    @phuc-party 9 місяців тому

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

  • @iAbhilashJena
    @iAbhilashJena 9 місяців тому

    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  9 місяців тому

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

  • @iamnoone3588
    @iamnoone3588 9 місяців тому +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.

  • @reedamranjan6367
    @reedamranjan6367 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

      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 9 місяців тому

      @@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

  • @driden1987
    @driden1987 9 місяців тому

    Loved the colorscheme, what is it ?

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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

    • @driden1987
      @driden1987 9 місяців тому

      Thanks @@joseanmartinez !

  • @PavelMalinov
    @PavelMalinov 9 місяців тому +3

    Rip Bram

  • @iayushhb
    @iayushhb 9 місяців тому

    finally , thanks for NOT quitting..

    • @joseanmartinez
      @joseanmartinez  9 місяців тому +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.

  • @akshitgupta4749
    @akshitgupta4749 9 місяців тому

    hey you are back

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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

    • @akshitgupta4749
      @akshitgupta4749 9 місяців тому

      @@joseanmartinez awesome bro👍

  • @minutaggio
    @minutaggio 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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

  • @squalazzo
    @squalazzo 9 місяців тому +1

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

  • @s-xj6ju
    @s-xj6ju 7 місяців тому

    please make an updated video champ from scratch

  • @vinodbabu2965
    @vinodbabu2965 9 місяців тому

    make a video on how to use neovim as beginner

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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

    • @vinodbabu2965
      @vinodbabu2965 9 місяців тому

      yes sir
      @@joseanmartinez

  • @SS-wl7od
    @SS-wl7od 8 місяців тому

    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 9 місяців тому

    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  9 місяців тому +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 9 місяців тому

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

    • @joseanmartinez
      @joseanmartinez  9 місяців тому

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