How to Vim in 2023: Tips and Tricks

Sdílet
Vložit
  • čas přidán 30. 03. 2023
  • This is not another tutorial on how to do some key combos or how to install plugins, its about using the plugins and everything together to have a complete experience! I hope you enjoyed it!
    Twitch
    Everything is built live on twitch
    Twitch : bit.ly/3xhFO3E
    Discord: discord.gg/ThePrimeagen
    Spotify DevHour: open.spotify.com/show/4MLaDrQ...
    Editor
    All my videos are edited by Flip. Give him a follow! / flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his dms.
    Join this channel to get access to perks:
    / @theprimeagen
    Links
    Linode: linode.com/prime
    / discord
    Twitch: / theprimeagen
    Insta: / theprimeagen
    Twitter: / theprimeagen
    VimRC & i3: github.com/ThePrimeagen/.dotf...
    Keyboard 15% off bit.ly/Prime360 USE CODE PRIME360
    #coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment
  • Věda a technologie

Komentáře • 761

  • @Ywz816
    @Ywz816 Před rokem +1062

    Over the past 3 months you’ve inspired me to switch from vscode to nvim. I feel 3x faster. Just in time for ai to take my job 💀

    • @relaxingnaturevideos1203
      @relaxingnaturevideos1203 Před rokem +111

      You feel 3x faster or you are 3x faster

    • @mixed_nuts
      @mixed_nuts Před rokem +4

      I just use Dance extension in vscode and create my own mappings

    • @eafadeev
      @eafadeev Před rokem +14

      I've done the opposite this week, to me copilot support is better in vscode so far and compensates for the relative slowness of vscode.

    • @Danielo515
      @Danielo515 Před rokem +7

      Copilot works in nvim

    • @eafadeev
      @eafadeev Před rokem

      @@Danielo515 it does, but works better in vscode imo. I'll keep testing though.

  • @jjysoserious
    @jjysoserious Před rokem +315

    "i use dvorak" DUDE IS THE PERFECT CHADSTACK 😭😭😭

    • @MrTyty527
      @MrTyty527 Před rokem

      kick docker out and get dvorak in!

    • @nicolasmazzon7231
      @nicolasmazzon7231 Před rokem +4

      btw

    • @shanewalsch
      @shanewalsch Před rokem +2

      He uses programmer dvorak i think

    • @astago2966
      @astago2966 Před rokem +4

      but is he using dvorak in the video? I'm a beginner in dvorak, writing this took me a while xd

    • @shanewalsch
      @shanewalsch Před rokem

      @@astago2966 most likely, but you can't be 100% sure cause he doesn't show his fingers. Also, as a dvorak typist, i dont recommend stopping typing in qwerty. Use both layouts, because if you use someone elses computer itd be a nightmare

  • @stavgafny
    @stavgafny Před rokem +85

    Guys I just figured out that pressing "I" lets you type things.
    I'm not lying it worked a minute ago.

    • @MrTyty527
      @MrTyty527 Před rokem +9

      now try exit vim

    • @mixed_nuts
      @mixed_nuts Před rokem +3

      Real talk why? I remapped my navigation ijkl to be up/left/down/right, and h is insert. I get that i stands for insert but it's more natural to me my way

    • @jesse9999999
      @jesse9999999 Před rokem

      ​@@mixed_nutsbasic nav on the home row is nice

    • @viktormarinho
      @viktormarinho Před rokem

      ​@@mixed_nuts could you please send a snippet showing how you did it ? i would like to try this as well

    • @lritzdorf
      @lritzdorf Před 17 dny

      ​@@mixed_nuts The general idea is that JK, as your two strongest home-row keys (for the right hand) form a sort of action pair (in this case, up/down). Then, HL form another pair (left/right) around that. As a bonus, this avoids occupying your pinky, since it's comparatively weak.
      If an arrow-key arrangement makes more sense, go for it, but be prepared for confused glances from other vimmers :)

  • @jafarjuneidi7585
    @jafarjuneidi7585 Před rokem +309

    This is actually the best vim video I've seen you make by far.
    Really loved it.
    Would like to see the i3+tmux combo as well

    • @jasonconsiglio5256
      @jasonconsiglio5256 Před rokem +6

      I'm redefining my entire workflow based on i3, tmux, ubuntu, and neovim. A lot to learn, but I can see the power right away.

    • @yavko
      @yavko Před rokem +2

      @@jasonconsiglio5256 try hyprland (or sway) instead of i3

    • @ycaro002
      @ycaro002 Před rokem +2

      ​@@yavko why?

    • @702-yt
      @702-yt Před rokem

      @@ycaro002 Wayland is superior to X in a lot of ways, but just try it and you'll see. You get a strangers guarantee on the internet so its bound to be worth it right?

    • @jafarjuneidi7585
      @jafarjuneidi7585 Před rokem +6

      @@yavko I tried Xmonad once, and I was an i3 config junkie before that. But honestly I found the default i3 to be very great lately. I don’t bother much with configurations and just focus on productive work.

  • @jemag
    @jemag Před rokem +160

    Nice to see ThePrimeTime posting on his secondary channel every once in a while ;)

    • @ThePrimeagen
      @ThePrimeagen  Před rokem +44

      gotem

    • @AustinMarlar
      @AustinMarlar Před rokem +2

      Yes, I am also glad to see him finally giving his second channel some love.

    • @sunnyheheheh9401
      @sunnyheheheh9401 Před rokem +1

      ThePrimeTime channel got some very good videos and they are so much better than those clickbait videos

  • @pesterenan
    @pesterenan Před 11 měsíci +11

    This is the third time I'm watching this video and I'm just in awe at how much I can now understand after getting into neovim, THANK YOU so much for those tutorials, you're are GREAT PRIME! Never stop teaching!

  • @overdevio1003
    @overdevio1003 Před rokem +36

    I also use Dvorak, a split keyboard, and neovim... Does that mean that I just need to learn rust? Am I just one step away from being a real CHAD?

  • @zaxiik
    @zaxiik Před 8 měsíci +13

    Thank you! I've been using Jetbrains for probably a decade already, and your videos convinced me to learn neovim. It's really not as hard as it seems, I'm on day 2 of using neovim exclusively and already good enough to not get lost.
    And holy shit, just exploring all the vim commands and figuring out how to combine them... when I experiment with something a little bit more complex, wondering "will this actually work?" and it ends up doing exactly what I wanted, that really gives such nice dopamine hit like no other software I've ever worked with.

  • @elocdev
    @elocdev Před rokem +2

    You've switched me to a rose-pine color theme and helped me a lot in getting started with vim. I've never had more fun navigating using vim motions. It's so fricking cool. Thank you!

  • @jameshardin1786
    @jameshardin1786 Před rokem +16

    Please make that total walkthrough you mentioned in this video of how to be a productive beast of a programmer using the tools you do. I am 21, new to the real side of programming and web dev. Thank you for your videos they have been enlightening me to the world of programming like no other channel has.

  • @shawnmatyasovszky7994
    @shawnmatyasovszky7994 Před rokem +144

    Would be curious to see your debugging workflow, if anyone else has interest in that sort of thing. It definitely seems like a pain point in the setup/usage of vim/neovim, and it's usually the thing I find myself reverting to an IDE for.

    • @pedrov8868
      @pedrov8868 Před rokem +3

      Yep this

    • @_k3vwd
      @_k3vwd Před rokem

      check these out - vimspector, nvim-dap

    • @IgorRoztr
      @IgorRoztr Před rokem +24

      Debugging is an anti-pattern :) Write better code

    • @yzeerkd
      @yzeerkd Před rokem +32

      ​@Igor Roztropiński the debugger is an invaluable tool. Sure you can get by without it, I did for years, and you can definitely "write better code" to avoid using it excessively as a crutch, but the ability to drop right into the runtime, inspect the scope, run arbitrary code, etc, can be a massive time saver

    • @th.araujo
      @th.araujo Před rokem +37

      ​@@IgorRoztr you certainly have no experience dealing with other people code

  • @onlywilddrift9506
    @onlywilddrift9506 Před rokem

    I am really inspired by your videos and moved completely to vim and just love it. Thanks for all this amazing content.

  • @Thomas-gi9vy
    @Thomas-gi9vy Před rokem +7

    I'd love to see different configurations and workflows, this was really inspiring and awesome to see the different tools being used

  • @mikeyim9985
    @mikeyim9985 Před rokem

    Yes the vim vid I needed! I was using your config and some of these stuff I would’ve never known or figured out how to do on my own. Thanks 🙏

  • @CUBKITS
    @CUBKITS Před rokem +10

    There's some really great navigation stuff in this video. I would love to get this fast some day. I'm working my way into using Neovim as my daily driver, but so far I can only really use it effectively when editing single files. I use vim keybindings on VSCode, because I understand how the files and navigation and stuff works, and all that stuff, but I would love to learn more about how buffers, windows, tabs, etc. work in Neovim. As of now I just end up feeling so claustrophobic with multiple files or an integrated terminal as I often just lose track of them or forget the shortcuts to navigate around/manage windows/buffers.

  • @MartialBoniou
    @MartialBoniou Před 11 měsíci

    Thanks for the demo. Very inspiring! You made me switching from Vim to NeoVim, good sir. I'm also a dvorak typist so your keybindings were perfect (esp. Harpoon). I've also used Lazy as my plugin manager (works the same except "nvim " only loads Netrw and the colorscheme).

  • @something00witty
    @something00witty Před rokem

    Appreciate this (almost as much as your chat with casey) - learning vim at the moment so videos like this are really helpful in understanding how the pieces fit together.

  • @patrickprucha5522
    @patrickprucha5522 Před 7 měsíci +2

    Excellent video. You are a skilled programmer that is for sure. You blaze through things so fast. I realize that vim is the only tool for you because of your focus on doing something.

  • @luizcarlosazevedo9558
    @luizcarlosazevedo9558 Před rokem +10

    amazing video!! would love a "how to use your terminal" with your transitions between command line, project in neovim and neovim config

  • @bugazavr
    @bugazavr Před 9 měsíci

    Finally watched this, picked up so many things, great video!!

  • @j1d7s
    @j1d7s Před rokem +54

    That was fun. I have been using LazyVim for some weeks now and I am getting a similarly nice and flowing experience. I just need to add harpoon to the mix, sorry about that omission!

    • @ThePrimeagen
      @ThePrimeagen  Před rokem +23

      it hurts, but at least you recognize :)

    • @ericjmorey
      @ericjmorey Před rokem +5

      ​@@IgorGuerrero you could also use file marks mM would mark a location in a file and 'M would take you to that location in that file. (You can use any capital letter to mark a location e.g. mA 'A would also work)

    • @j1d7s
      @j1d7s Před rokem

      @@IgorGuerrero Thanks, I used that already, it was a bit distracting because there are lots of jump targets in th e whichkey display, not just the ones I intentionally set.

    • @IgorGuerrero
      @IgorGuerrero Před rokem +1

      @@j1d7s There's also `Telescope marks`

  • @paprykojad6315
    @paprykojad6315 Před rokem

    I literally configured nvim 3 hours ago and you post next tutorial, you're a saint man!

  • @carlweis
    @carlweis Před rokem

    Yes…that’s the stuff. Please keep digging deeper into the vim workflow. Simply amazing. Let’s go!1

  • @rustdev1
    @rustdev1 Před rokem

    truly need more of this. Something like advanced usage of vim-fugitive

  • @theondono
    @theondono Před rokem +4

    I'm just commenting to please the algorithm because more people should be using vim

  • @mikeyim9985
    @mikeyim9985 Před rokem +2

    Also these vim videos have so much rewatch value. I mean, I’m probably gonna play this over and over and pausing tip by tip until I get it all committed in my memory

  • @saleenapatel
    @saleenapatel Před rokem

    this was super super awesome man. I really want to know everything like everything about your workflow. Like hell yeah I want to see your combo 💯

  • @Asgrim_S
    @Asgrim_S Před rokem +1

    I literally watched neovim setup video yesterday. This is perfectly timed.

  • @len0xx963
    @len0xx963 Před rokem +4

    Just recently switched from VSC to Neovim, so it would be great to get more helpful videos like this one 👍🏼

  • @jonforhan9196
    @jonforhan9196 Před rokem

    Thank you! I just learned the 'gd' thing with the lsp from this and it had made my life much better.

  • @3dprintjam
    @3dprintjam Před rokem +24

    You make this look so simple!!

    • @distant6606
      @distant6606 Před rokem +4

      thats what years of practice looks like baby

  • @IK-xk7ex
    @IK-xk7ex Před rokem

    Thanks world that these guys are exist and pushing us to use amazing tools like VIM. This video did my boring Monday

  • @taylorchavez6286
    @taylorchavez6286 Před rokem +6

    This reminds me of watching a star craft 2 pro explain all the hot key mappings lol

  • @anmolsharma4049
    @anmolsharma4049 Před rokem +5

    Mygod so perfect timing. Just finished you 0 to lsp. You are a blessing

  • @ravinrod
    @ravinrod Před rokem

    You just gave me some great ideas to improve my git workflow. Great video!

  • @krnrrr
    @krnrrr Před rokem

    top chadstack vid! i think it's not already that new for me (after all years of using vim), but very entertaining. simply the best!

  • @ariseyhun2085
    @ariseyhun2085 Před rokem +7

    I recently switched to vim because of you, much appreciated boss 🙏
    Turns out creating your own config really isn't that difficult

    • @zappist751
      @zappist751 Před 8 měsíci

      Wait does it have syntax highlighting?

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

      @@zappist751 yup it does!

  • @papricasix
    @papricasix Před rokem +1

    Awesome video! Finally! Please give us more of those!!

  • @aus10d
    @aus10d Před rokem

    You are definitely a Grand Master of the Dark Arts. You show off vim in all its glory. I hope some day to be at least 5% as efficient as you.

  • @andresmartinez4697
    @andresmartinez4697 Před rokem

    What a great video, the git part was amazing, keep the good work man!

  • @inomoz
    @inomoz Před rokem

    Watched half of video with pause / double checking your workflow 😀. Thanks for sharing it.

  • @musdevfrog
    @musdevfrog Před rokem +1

    Thank you for inspiring youths to use vim, linux, i3, tmux, Rust, ergonomics keyboard and dvorak.

  • @TayTayChan
    @TayTayChan Před rokem +31

    This is great. Would love to see more about your i3, tmux and git worktree workflows

    • @Garentei
      @Garentei Před 10 měsíci

      He only uses i3 to assign each window a number which is kind of dumb since you can configure that directly in system settings in Mac or Linux lol

  • @leonasdev
    @leonasdev Před rokem +1

    The part of solving conflict is so neat. thanks!

  • @mayboroda
    @mayboroda Před rokem +1

    This is the only channel that I have to listen on 0.75 speed.
    And (slap) we need more videos

  • @solidoak79
    @solidoak79 Před rokem

    Nice, Prime. I remember watching Ryan Florence vim his way around during a React talk and thinking I need to up my game. This vid is inspiring. Challenge accepted.

  • @luca-dallavalle
    @luca-dallavalle Před rokem

    Best video on Neovim I've seen up until now... by far.

  • @krtirtho
    @krtirtho Před rokem +15

    Any consideration for the underrated F.A.R.T (Flask, AWS, React, Tailwind) stack?

    • @seaweedglob
      @seaweedglob Před rokem +2

      I'm more of a VAG (Vue, AWS, Go) stack kinda guy

    • @tuananhdo1870
      @tuananhdo1870 Před rokem

      @@seaweedglob golang aws next tailwind

    • @tuananhdo1870
      @tuananhdo1870 Před rokem

      @@seaweedglob trust me react i better than vue

  • @Mikenight120
    @Mikenight120 Před rokem +3

    LETS GO THEPRIMEAGEN BACK WITH THE BEST CONTENT!! VIM!

  • @kaczor647
    @kaczor647 Před rokem

    This video has so much energy!

  • @RobertMenke-fd9rc
    @RobertMenke-fd9rc Před rokem +1

    Great video! I've yet to break away from jetbrains for merge conflict resolution, but that was a cool workflow.

  • @stevecanny1583
    @stevecanny1583 Před rokem +1

    Awesome job Prime! Any time I need to slow the video down to 50% and watch it five times to get all the juice out I know I'm onto something good!

  • @ji30019hq
    @ji30019hq Před 8 měsíci

    Thanks a lot for the overview. If you’re still considering it, I’d also love to see a video on your tmux, etc config and workflow.

  • @AlecMaly
    @AlecMaly Před rokem

    Now I know what Towlie felt like, I have no idea what's going on. Love it!

  • @liquidpebbles
    @liquidpebbles Před rokem

    May the algorithm bless and keep you

  • @KuzyoYaroslav
    @KuzyoYaroslav Před rokem

    Love the video. Surely want to see tmux/i3/vim workflow.

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

    Good one buddy
    love your personality in videos

  • @user-jx2hn2ov8g
    @user-jx2hn2ov8g Před rokem +1

    Hey!! Would love to see a tutorial on how to best use vim for bioinformatics! So have R and python autocompletion perfectly set up, as well as quick pdf and Rmd viewer within vim! And to see plots directly when making them! (as opposed to using rstudio or vscode). Thank you for all your videos ThePrimeagen

  • @FilhoLouco
    @FilhoLouco Před rokem

    That's the video I was waiting for

  • @mariuszmiszuta3200
    @mariuszmiszuta3200 Před rokem

    thank you! Also you convinced me to try Fugitive!

  • @VictorPedro
    @VictorPedro Před rokem +1

    I started using nvim after I watched your setup video,. Today I needed to resolve some git conflicts, and I wasn't sure how to do it using fugitive and had to open vscode (*spit*) for that. Anyway, the timing of this was perfect haha. Thank you for sharing the nvim wisdom.

  • @Paul-sv1lg
    @Paul-sv1lg Před rokem +2

    This is peak chad, love the vim videos

  • @Generic_text871
    @Generic_text871 Před rokem

    God, it's the sequel we've been waiting for

  • @anotherdamnuser
    @anotherdamnuser Před rokem

    Gotta say this is a very underrated channel.

  • @costindinoiu7440
    @costindinoiu7440 Před rokem

    Honestly I enjoy prime's videos so much I just like them :)) he's good at both entertaining and coding.

  • @mikhailkalinin6484
    @mikhailkalinin6484 Před rokem

    BLAZINGLY USEFUL INFO! THANKS YOU

  • @jackle3002
    @jackle3002 Před rokem

    Yes please, you;re doing some awesome stuffs man.

  • @nicpayne4130
    @nicpayne4130 Před rokem

    Thank you for the merge conflict demo 🔥✨

  • @nikitajesaibegjans2458

    I don't use Vim or intend to, but cannot stop watching him using it - it is too satisfying

  • @subbunittala2012
    @subbunittala2012 Před rokem

    you inspired me to switch me to NEOVIM sir ..bow down to you ..thanks for boosting my prodcutivity ..I'm loving it ,....using since 5 months !

  • @colineckert
    @colineckert Před rokem

    awesome vim video! practical AF and exactly what I needed. what is the fugitive remap you made for git push?

  • @arsenskavin130
    @arsenskavin130 Před rokem

    Entertainment and educational values are truly at pinnacle.

  • @Iceman259
    @Iceman259 Před rokem +1

    Holy fuck I was scratching my head when you set the bindings for Harpoon in the neovim video and NOW IT ALL MAKES SENSE.

  • @ThrashAbaddon
    @ThrashAbaddon Před rokem +4

    I'm very interested in seeing how does debugging work in neovim. I'm using CLion & PyCharm and that those things are beasts. It takes me a few seconds to set a conditional breakpoint and pause the main thread called from a failing test. I can see the callstack, variables in each stack, maybe even play a bit in debug console to inspect in detail where is the problem is.

  • @heitorvrb
    @heitorvrb Před rokem +8

    You should make a video on dvorak, why did you decide to make the switch, why did you choose dvorak over other """newer""" and """better""" layouts, how hard was the transition and how long did it take you to get back to full speed typing!

    • @NathanHedglin
      @NathanHedglin Před rokem +1

      He talks about on stream that in hindsight he'd remap the special characters instead of using Dvorak.
      It took me only a month to switch cold turkey to get back to my qwerty speed.
      A custom layout is probably ideal. Dvorak is a bit too right hand heavy imho

  • @derekreed6798
    @derekreed6798 Před rokem

    OMG I used to us vi for everything 30yrs ago, I was doing some python using vim recently and it was taking me so long I went to vscode...but you have led me back to the light😃.

  • @NeverCodeAlone
    @NeverCodeAlone Před rokem

    I love your passin and start a own vim series here. I want to learn!!!

  • @petrpechkurov3095
    @petrpechkurov3095 Před rokem

    Thank you, Mr. ThePrimeagen!

  • @alexIVMKD
    @alexIVMKD Před rokem

    Been using neovim since your step by step guide. I appreciate it mr. PrimeTime. Yes I might or might not be intentionally mispronouncing your name. Edit: Learned a lot of stuff, good shit!

  • @almcchesney
    @almcchesney Před rokem +1

    Primeagen what keyboard are you rockin? My current ms sculpt keyboard is wearing out and in the market for a new one and eyeing a kinesis advantage 2 with the dual legend but the advantage 360 looks pretty awesome

  • @mosukiton
    @mosukiton Před rokem

    Mate this video is so fucking good. I've used vim to edit config files in Linux but I've only developed at work and thats usual visual studio. You've just convinced me to configure nvim myself and switch over to it

  • @soundisfunction
    @soundisfunction Před rokem

    amazing videos, just subbed ty ser

  • @kesavan12
    @kesavan12 Před rokem +2

    Finally the vimminhlg video! let's go let's goooooo!

  • @mpiorowski
    @mpiorowski Před rokem +4

    omg, he's back with the VIM!

  • @ricardorien
    @ricardorien Před rokem

    Nice movements, btw, love harpoon.

  • @user-wk3qs3mb5t
    @user-wk3qs3mb5t Před rokem

    the channel is alive! 🎉

  • @NicolasRuizX
    @NicolasRuizX Před rokem

    The intro described me very accurately.

  • @parthokr
    @parthokr Před rokem

    We will we will rock vim
    Thanks Freddie

  • @imaksimus
    @imaksimus Před rokem

    Oh my, I’m already pumped up for that Prime React video coming where Prime reacts to Prime neovimming in 2023.

  • @ArielBenichou
    @ArielBenichou Před rokem +4

    Since I've gotten into:
    - NeoVim (Harpoon, Telescope, Lsp, etc...)
    - Tmux-Sessionizer
    - Rust
    You made my life better.

  • @asdfasdfasdf1218
    @asdfasdfasdf1218 Před rokem +3

    I've recently started using markers (m to make marker, ' or ` to jump to marker) and they're rather convenient but something you wouldn't start using unless you consciously thought about it at first.

    • @ravidesai9556
      @ravidesai9556 Před 11 měsíci

      I come from Emacs-land, and really liked emacs' registers. Learning about vim markers allowed me to stay in the same navigation patterns that I'm used to, but with vim that uses less than half the RAM.

  • @SwankyMarrow
    @SwankyMarrow Před rokem +1

    So good I liked it twice!

  • @AnthonyHarivel
    @AnthonyHarivel Před rokem

    To move that fast between windows I use Sway windows manager. Top notch video !

  • @tech3425
    @tech3425 Před rokem

    About time you dropped a vid here

  • @AlfW
    @AlfW Před rokem

    As a chronic saver, you should map w (or similar) to :w ...

  • @kristianpaul7
    @kristianpaul7 Před rokem

    I need a summary of those shortcuts, really handy!

  • @caasidev6812
    @caasidev6812 Před rokem

    awesome as always!

  • @zemrood
    @zemrood Před rokem

    This was super useful, thanks!

  • @sadDota
    @sadDota Před rokem +1

    wich is Cleary! . . is The Most Complex way to edit text!! 👌💯

  • @Dontrel3030
    @Dontrel3030 Před rokem

    I like the My Name is Earl voice over delivery in this video