Harpoon : Vim Conference 2021

Поділитися
Вставка
  • Опубліковано 1 лис 2021
  • This is the presentation that I did for vim conference 2021. It is how I have arrived to the conclusion about harpoon. Its goal isn't to teach you about harpoon but how I arrived to its conclusion.
    I hope you enjoy this presentation.
  • Наука та технологія

КОМЕНТАРІ • 206

  • @austinreynolds2554
    @austinreynolds2554 2 роки тому +254

    A caffeine-fueled Starcraft-player-turned-programmer can't stand inefficiencies. This is the greatest channel ever. Also, that was a lot of hyphenation.

    • @josevargas686
      @josevargas686 Рік тому +5

      Star craft control groups is really what I was thinking about with this idea, perfect!

  • @nakoskyranos4080
    @nakoskyranos4080 2 роки тому +312

    I frigin love this guy. He is so insane! What a pleasure to watch

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +66

      thanks! I really appreciate the nice comments.

  • @jeezusjr
    @jeezusjr 2 роки тому +52

    That dance was amazing. Also, this is a revelation. I have also been struggling with this issue for years. Vim users don't usually encounter this unless you are in a high production environment where things are constantly changing. My last attempt at trying to alleviate this problem in my workflow was using tabs, but you are absolutely right: using tabs are only adding to the burden. Can't wait to add this to my toolbox.

  • @Megalcristo2
    @Megalcristo2 2 роки тому +8

    You have something here. Marks always seems so powerful to me and yet for some reason no one uses them. And I was trying to use them and only then I realized "What?, now I have to think in more marks for every project that I am working on" and then I see this video, talking about even more drawback that I didnt think of and giving a very natural and "vim way" solution. Looking forward for this now.

  • @lpanebr
    @lpanebr 2 роки тому +8

    That's the greatest and smartest navigation strategy and implementation ever.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +2

      hopefully its good. Its just how I like to do it.

  • @kalvinpearce
    @kalvinpearce 2 роки тому +59

    Haven't watched day 2 yet but damn this was a good talk. Finally convinced me to Install it and I gotta say, I can already feel the power!

  • @daltonyon
    @daltonyon 10 місяців тому +1

    The best tool to navigation I have been using every day, love it

  • @sebastianc4557
    @sebastianc4557 2 роки тому +46

    How you distilled the problem and arrived to the conclusion is awesome! Keep it up my man!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +7

      Thanks! Its hard some times to walk through my thought process and I miss context from time to time, but thank you for the encouraging note!

  • @niteshsangroula2698
    @niteshsangroula2698 Рік тому +5

    harpoon really changed the way I used to do things. After just 2 days of using installing. I can feel the power!!

  • @Amapramaadhy
    @Amapramaadhy 2 роки тому +9

    You deserve an Emmy for that dance!

  • @mateharu
    @mateharu 2 роки тому +13

    *auto-updatable marks* - exactly what I was missing in (n)vim. This should be built-in. Thanks man!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +3

      that is how I feel! That was my big problem. Also the fact that if I switched cwd my marks remain totally screwing me up.

  • @teej_dv
    @teej_dv 2 роки тому +17

    POGSLIDE I'm in the video POGSLIDE

  • @bartomiejklimczak3407
    @bartomiejklimczak3407 2 роки тому +3

    To be honest, when I watched your video I started noticing how much time I spend navigating between files and it started frustrating me. A LOT! Thanks!
    I HAD TO install this plugin and since then - I'm a happier person.

  • @RenaudAlly
    @RenaudAlly 6 місяців тому +1

    You're the one of my most favorite discoveries in recent memory. Understanding why you do the incredible work you do has helped me reflect on myself too. You're a blessing Prime, and thank you for helping coding padawans like me. After all you've been through and shared on your channel, you deserve every good thing coming your way.
    Tldr: i admire prime more than coconut oil (blasphemy fr)

  • @alexpan4987
    @alexpan4987 2 роки тому

    This is what I was looking for for so long

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

    So glad I found this channel

  • @mar-wv7rp
    @mar-wv7rp 2 роки тому +8

    Great work. Great way to present where it's coming from.
    Thank you^^

  • @ayushmandowara5446
    @ayushmandowara5446 Рік тому

    I love this so much! It's exactly what I was looking for. There's a project where I definitely have to open a few files somewhere during the development and I have a habit of closing my vim down completely when I am done with a feature or something, it's like just a habit at this point. Sometimes I am not in the right subdirectory so I can't even fuzzyfind the file(s) I want to open. Harpoon is going to be a game changer for sure. Also, for some reason, I had completely forgotten about marks, even though I use them for quickly jumping to my vim conf lol. They could've at least removed some of the burden for sure.

  • @stefanpetursson6520
    @stefanpetursson6520 2 роки тому +1

    Looks awesome, thanks for another great talk! Already looking forward to the tmux version :o

  • @re1konn
    @re1konn 10 місяців тому

    Amazing plugin Prime! I see myself using it a lot. Very intuitive functionality.

  • @dq9342
    @dq9342 2 роки тому

    this is the only channel that I tell myself ...must click the like button. love that dance!

  • @rbereziuk
    @rbereziuk 2 роки тому +13

    Awesome thing Primeagen, thanks 🔥
    It feels so natural to just write code and don't switch thoughts to finding files
    btw: cool dance )

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +3

      hah :) My dance moves are the best.

  • @n0kodoko143
    @n0kodoko143 2 роки тому +6

    DDR king is oily! Btw, thank you for the harpoon gem! Excited to see the multiplex edition.

  • @nahblue
    @nahblue 11 місяців тому +1

    Nice story. It reminds me of the glorious V mark in old Vim, it's always in my .vimrc. Still there, not moving, because I don't open vim now. Just neovim. Right now I solve the problem in the video with lua bufferline and pins. Pin buffers, close all others regularly.

  • @threesidecreaters2572
    @threesidecreaters2572 2 роки тому +11

    Very good video and very helpful

  • @hossameldinabdin6932
    @hossameldinabdin6932 2 роки тому +2

    One of your best videos

  • @parthapal333
    @parthapal333 2 роки тому +10

    That is why I open all important files in splits and never close them. Hopefully harpoon is going to improve that workflow as now I will be able to finally write code in full-screen

  • @alfredomenezes8814
    @alfredomenezes8814 Рік тому

    I freaking love this guy ❤

  • @TamaMcGlinn
    @TamaMcGlinn 2 роки тому +4

    I was using Try 1, because you mentioned `mJ` and `mK` in another video. It worked, but I'm happy with the upgrade to harpooning files instead. Thank you!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +3

      no problem. the navigation via global marks is emotionally draining when you have to switch projects.

    • @TamaMcGlinn
      @TamaMcGlinn 2 роки тому +2

      @@ThePrimeagen having to remember to create the marks in the first place is also frustrating, especially if you need to restart vim. Harpoon is working amazingly well with just 3 keymappings basically; mark this file, jump to the first mark, and show all the locations.

  • @adeelcap15
    @adeelcap15 2 роки тому

    I am facing this exact same issue too and is frustrated to manage when I have opened many buffers. I ultimately use vim projectionist plugin from Tim pope and using alternate file feature that is relevant to the project I am working. I am impressed by your approach and will definitely try that.

  • @SkyKosiner
    @SkyKosiner 2 роки тому +11

    Por que prime. This was a master piece talk. Also I was expecting a talk from tj on how to use coconut oil. Where is the talk?

  • @oceans11nemesis
    @oceans11nemesis 2 роки тому +3

    Using vim since 2006, still exiting with the power button

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      Pretty classic way to exit honestly.

  • @eduardosanzb
    @eduardosanzb 2 роки тому +3

    so much energy, so hilarious! and still good tech content!
    You should start doing tik toks 😜

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

    Doc would be proud of that dance

  • @williamtaylor2807
    @williamtaylor2807 2 роки тому +23

    Came for the dance moves. Stayed for the dance moves. Also Harpoon is pretty rad.

  • @thangphan6047
    @thangphan6047 2 роки тому

    That's really a cool plugin, I really really appreciate that, keep it up, thank you so much :)

  • @chenle02
    @chenle02 2 роки тому +1

    Love your dance!

  • @atilagamasilva508
    @atilagamasilva508 2 роки тому

    Really thanks for harpoon!! I'm enjoying it a lot!! :>

  • @KikoKing
    @KikoKing 2 роки тому +3

    Awesome!!! I understand what harpoon does and it's value now and want to try it! I constantly feel like I can't navigate fast enough!

  • @hamburger-fries
    @hamburger-fries 2 роки тому +1

    super duper! don't make fun of me but I'm using this for a netxtjs / rust project and it is helping me bounce around between files like a 8 year old boy who had too much sugar! wonderful!

  • @Guergeiro
    @Guergeiro 2 роки тому +7

    Funny thing, I know about Harpoon already, but why do I keep watching talks about it? Ohhh, I know why! The Coconut Man!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      most excellent :) Here is some free oil

  • @k1mpman
    @k1mpman 2 роки тому +1

    found this guy some days ago and im addicted hah

  • @tobias-edwards
    @tobias-edwards Рік тому

    Great video, hilarious that you then remained out of breath for the rest of the video :D

  • @dickheadrecs
    @dickheadrecs Рік тому

    prime rocking out to pegboard nerds punching out code and internally screaming “i’m about to change the goddamn world” is a mental image i have with absolute clarity
    wait i didn’t get to the actual dance bit in the video yet holy shit haha

  • @lamprospitsillou6325
    @lamprospitsillou6325 2 роки тому +1

    Amazing Prime! Please put the git link in the description, people are gonna wanna use Harpoon after this !

  • @leofreiitas
    @leofreiitas 2 роки тому

    Man I love this guys kkkkkkkkkkkkkkkkkkkkkkkkkkkk

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

    love ur plugins

  • @davidhero125
    @davidhero125 2 роки тому +3

    Damn, that intro was sure fireeeee

  • @narwashius1176
    @narwashius1176 2 роки тому +1

    love it!

  • @sasipraveen5257
    @sasipraveen5257 2 роки тому +4

    Hope you had a wonderful day at your first day of Netflix after the holidays

  • @KENTOSI
    @KENTOSI 2 роки тому +3

    I came for the vim knowledge, I stayed for the screaming. And dancing.

  • @slipcurve1410
    @slipcurve1410 2 роки тому +9

    Maybe I should finally try this out. I've been navigating with the help of tmux, other file, C-I/O and telescopes fuzzy search open buffers. I also do splits to not lose files, but they always get mixed up after awhile.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +3

      yeah. Sounds like we are the same :)

  • @eliodrallag4806
    @eliodrallag4806 2 роки тому

    The nft joke had me subscribed 😂😂😂😂

  • @albertlee9592
    @albertlee9592 2 роки тому +11

    Harpoon is one of the best vim plugins I installed this year. I was like "how did I code without this????" #yearslost
    Thank you Prime for this plugin. I also love terminal functionality of it as well

  • @NikolaNevenov86
    @NikolaNevenov86 Рік тому

    ok I'm hooked

  • @nickmills8476
    @nickmills8476 Рік тому

    Installed for 2023!

  • @elixirfun
    @elixirfun Рік тому +1

    What key mappings do you personally use with Harpoon?

  • @leknyzma
    @leknyzma 2 роки тому +1

    I thought you are going to cry on the end :D :D

  • @redone729
    @redone729 2 роки тому +1

    You really need to do a brand new VIM setup now

  • @le0nz
    @le0nz 2 роки тому +2

    Great talk, miss a little the coconut oil tho

  • @user-bp8ez5gk2i
    @user-bp8ez5gk2i 2 роки тому

    You have strong vibes of Michael Scott (played by Steve Carell) from The Office

  • @mhmmdshaz98
    @mhmmdshaz98 2 роки тому +3

    I'm pretty new to your channel and boy 🤣, that Mike Tyson one had me dead 💀.
    Btw, are you related to DocDisRespect in anyway? Just curious.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      !brother
      No we are not related, but some how we seem similar in a sense. Growing up in the 90s made some people a bit... weird

    • @mhmmdshaz98
      @mhmmdshaz98 2 роки тому

      The voice, the energy and both legends in their own field .😛.

  • @codemonk9
    @codemonk9 2 роки тому +1

    dude I love you

  • @mvargasmoran
    @mvargasmoran 2 роки тому +4

    I'm at the Buffer Next :bn :bp step.
    it's awful... too many netrw buffers and things that I just wanted to grab a color or other style variables.

  • @tinnick
    @tinnick 2 роки тому +1

    Can we get a harpoon preview window like telescope in vim buffer so that before selecting from the menu, we get to see what’s marked?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      This is a great idea. Make an issue, consider it yourself. I don't use the window to navigate. Or bother TJ

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

    I fucking lost it at the interpretive dance. I love ThePrimeagen lol

  • @aitorramirez5173
    @aitorramirez5173 Рік тому

    We also want Harpoon for Vim!!!! 😭

  • @N0thingFR89
    @N0thingFR89 2 роки тому +2

    i can do it, I CAN DO ITTT

  • @empirechen
    @empirechen 13 днів тому

    This is the most intensive video I have ever watched. Inject Ritalin into this giy😂

  • @juangamboa2646
    @juangamboa2646 2 роки тому

    This is amazing, too much coconut oil to digest, well done!

  • @losthighway4840
    @losthighway4840 Рік тому

    insane the leghths some will go to avoid using fuzzy finding or gasp a mouse.

  • @Vulto166
    @Vulto166 2 роки тому

    Are you using "sent" to display all of this slides ?
    btw harpoo is bless!!!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      nope! I am just using google power point. I am lame.

  • @brunomello7499
    @brunomello7499 2 роки тому +1

    like how after the dancing he changes into OutOfBreathPrimeagen for the rest of the talk

  • @ColinDdd
    @ColinDdd 2 роки тому

    thanks hackerman

  • @goodoleme747
    @goodoleme747 Рік тому

    I must have something messed up... when harpoon back to my files, it goes to a blank buffer.

  • @garkeinen7034
    @garkeinen7034 2 роки тому +1

    What talking about projects in vim, you mean folders, right?
    For example when having marks per project, how does vim know which project you're in? By the working directory?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      project is cwd / git root depending on how you use it.

  • @sasipraveen5257
    @sasipraveen5257 2 роки тому +5

    RAUULLLLLLL

  • @ismail-talb
    @ismail-talb 2 роки тому

    'somebody should make an NFT out of this" 😂

  • @chyldstudios
    @chyldstudios 2 роки тому +2

    This shit is epic.

  • @nathanbourquin6554
    @nathanbourquin6554 11 місяців тому

    “Try shift for a straight line”

  • @scottspitlerII
    @scottspitlerII 2 роки тому +1

    I use vim + tmux with just like hundreds of named windows and sessions for all of my projects, I don’t leave the same terminal all day. I just swap session, I have a convention where my docker logs are on window 0 compiler is on 1 and 2 is my main function/router for web servers and then I branch out from there. If you get up to 9 windows you have gone too far and are probably hurting yourself

  • @user-io2ln7wv3k
    @user-io2ln7wv3k 2 роки тому +3

    The concept feels similar to the argument list (`:help arglist`): `:arg foo.c bar.c baz.c` to keep a set of files, `:argu n` to edit the nth one, and abilities equivalent to buffers (`:next`, `:prev`, `:argdo`). Obviously, it's not as "interactive" as your plugin and it's not per-project.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      yeah. I haven't explored arglist, but its on my todo.

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

    I had same experience as yours. I had to turn off my computer to exit from VIM

  • @reo101
    @reo101 2 роки тому +2

    Can you harpoon the coconut oil?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      nope. Haproons come with oil already on them.

  • @darccau7204
    @darccau7204 2 роки тому +2

    Nice

  • @pascualsu
    @pascualsu 2 роки тому +2

    hey Prime, I haven't noticed before but sometines your voice sounds a lot like Steve Carell's

  • @luxusAI
    @luxusAI 2 роки тому

    why move to Tmux? isn't it to slow?

  •  2 роки тому +2

    In the video the mark of harpoon shows the full path of the file, what is not my case. How we can achieve that?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      I am a bit confused as your question, could you try again?

    •  Рік тому

      @@ThePrimeagen In your case we see: lua/refactoring/treesitter/init.lua
      in my case I can see only the basename (init.lua) listed on harpoon

  • @Volatuhl
    @Volatuhl 2 роки тому +1

    What was the song you were jammin to?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      NCS release - Happy

    • @Volatuhl
      @Volatuhl 2 роки тому

      @@ThePrimeagen Legend, thanks!

  • @rodelias9378
    @rodelias9378 2 роки тому

    TJ!!

  • @zenmachina6735
    @zenmachina6735 2 роки тому +1

    3:45 lol, did you say "no me gusta" ?

  • @lucasteixeira5346
    @lucasteixeira5346 2 роки тому +1

    When are your videos going to be uploaded to Netflix? They are loosing a business opportunity here

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

    af pluth-pluth @9:33 killed me....

  • @Spuny4
    @Spuny4 2 роки тому

    Looks like great plugin with a lot of power but I think that for me it has no use. Usually i'm all over the repo with lots of folders and files and instead of 4 main files i'm jumping between 10 or 20. So fzf is the way for now :D although it is emotionaly hurting me :D
    But thanks anyway, nice info and maybe day i will realize that there is some use. Keep it up ;)

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      just trying to solve problems!
      I find when I am creating a new feature, this is generally true, when debugging, generally false.

    • @Spuny4
      @Spuny4 2 роки тому

      @@ThePrimeagen maybe i will fork it and modify a little bit ;) cause it looks really nice, thanks for this

  • @darioh785
    @darioh785 2 роки тому +1

    where is the yeah kid you're about to get powerpointed meme??????????????? btw good vid

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      Hah! It was a live presentation, so I couldn't be as goof :)

  • @rentziass
    @rentziass 2 роки тому

    Please Lord Primeagen, don't let Vim Conference 2021 get lost in Twitch's sands of time (a.k.a. retention policies) and upload it maybe here? (:

  • @worgenzwithm14z
    @worgenzwithm14z 2 роки тому +1

    THE VSM

  • @BogdanTheGeek
    @BogdanTheGeek Рік тому

    Why not just use tabs? They are numbered, ordered and you can save them as sessions.

  • @tusharkuntawar6170
    @tusharkuntawar6170 2 роки тому +1

    mind == blown
    > True

  • @tcroyce8128
    @tcroyce8128 2 роки тому

    He sounds exactly like Bill Burr. It's frightening.