Harpoon : Vim Conference 2021

  Рет қаралды 107,497

ThePrimeagen

ThePrimeagen

2 жыл бұрын

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.

Пікірлер: 207
@austinreynolds2554
@austinreynolds2554 2 жыл бұрын
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 Жыл бұрын
Star craft control groups is really what I was thinking about with this idea, perfect!
@henryharrison5927
@henryharrison5927 16 күн бұрын
wait ThePrimeagen is a Starcraft player???? BASED
@nakoskyranos4080
@nakoskyranos4080 2 жыл бұрын
I frigin love this guy. He is so insane! What a pleasure to watch
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
thanks! I really appreciate the nice comments.
@lpanebr
@lpanebr 2 жыл бұрын
That's the greatest and smartest navigation strategy and implementation ever.
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
hopefully its good. Its just how I like to do it.
@jeezusjr
@jeezusjr 2 жыл бұрын
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.
@niteshsangroula2698
@niteshsangroula2698 Жыл бұрын
harpoon really changed the way I used to do things. After just 2 days of using installing. I can feel the power!!
@daltonyon
@daltonyon 11 ай бұрын
The best tool to navigation I have been using every day, love it
@kalvinpearce
@kalvinpearce 2 жыл бұрын
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!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yayayaya!
@Megalcristo2
@Megalcristo2 2 жыл бұрын
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.
@sebastianc4557
@sebastianc4557 2 жыл бұрын
How you distilled the problem and arrived to the conclusion is awesome! Keep it up my man!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
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!
@Amapramaadhy
@Amapramaadhy 2 жыл бұрын
You deserve an Emmy for that dance!
@mateharu
@mateharu 2 жыл бұрын
*auto-updatable marks* - exactly what I was missing in (n)vim. This should be built-in. Thanks man!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
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.
@RenaudAlly
@RenaudAlly 7 ай бұрын
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)
@bartomiejklimczak3407
@bartomiejklimczak3407 2 жыл бұрын
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.
@stefanpetursson6520
@stefanpetursson6520 2 жыл бұрын
Looks awesome, thanks for another great talk! Already looking forward to the tmux version :o
@mar-wv7rp
@mar-wv7rp 2 жыл бұрын
Great work. Great way to present where it's coming from. Thank you^^
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yayayayaya!
@threesidecreaters2572
@threesidecreaters2572 2 жыл бұрын
Very good video and very helpful
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
you are welcome
@nishapk1689
@nishapk1689 2 жыл бұрын
@@ThePrimeagen a video on your bash scripts
@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.
@drewdaniels9577
@drewdaniels9577 9 ай бұрын
So glad I found this channel
@nahblue
@nahblue Жыл бұрын
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.
@n0kodoko143
@n0kodoko143 2 жыл бұрын
DDR king is oily! Btw, thank you for the harpoon gem! Excited to see the multiplex edition.
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yaya! We will get there
@teej_dv
@teej_dv 2 жыл бұрын
POGSLIDE I'm in the video POGSLIDE
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
DONT DO THIS
@dq9342
@dq9342 2 жыл бұрын
this is the only channel that I tell myself ...must click the like button. love that dance!
@rbereziuk
@rbereziuk 2 жыл бұрын
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 жыл бұрын
hah :) My dance moves are the best.
@alexpan4987
@alexpan4987 2 жыл бұрын
This is what I was looking for for so long
@re1konn
@re1konn 11 ай бұрын
Amazing plugin Prime! I see myself using it a lot. Very intuitive functionality.
@SkyKosiner
@SkyKosiner 2 жыл бұрын
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?
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
hah. Tj does make an appearance
@eduardosanzb
@eduardosanzb 2 жыл бұрын
so much energy, so hilarious! and still good tech content! You should start doing tik toks 😜
@hossameldinabdin6932
@hossameldinabdin6932 2 жыл бұрын
One of your best videos
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
thank you :)
@TamaMcGlinn
@TamaMcGlinn 2 жыл бұрын
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 жыл бұрын
no problem. the navigation via global marks is emotionally draining when you have to switch projects.
@TamaMcGlinn
@TamaMcGlinn 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.
@williamtaylor2807
@williamtaylor2807 2 жыл бұрын
Came for the dance moves. Stayed for the dance moves. Also Harpoon is pretty rad.
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Shoot to thrill babe
@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
@thangphan6047
@thangphan6047 2 жыл бұрын
That's really a cool plugin, I really really appreciate that, keep it up, thank you so much :)
@tobias-edwards
@tobias-edwards Жыл бұрын
Great video, hilarious that you then remained out of breath for the rest of the video :D
@alfredomenezes8814
@alfredomenezes8814 Жыл бұрын
I freaking love this guy ❤
@atilagamasilva508
@atilagamasilva508 2 жыл бұрын
Really thanks for harpoon!! I'm enjoying it a lot!! :>
@oceans11nemesis
@oceans11nemesis 2 жыл бұрын
Using vim since 2006, still exiting with the power button
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Pretty classic way to exit honestly.
@parthapal333
@parthapal333 2 жыл бұрын
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
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
holy cow! That would be a pain!
@KikoKing
@KikoKing 2 жыл бұрын
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!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yayayaya! That is why I made it
@chenle02
@chenle02 2 жыл бұрын
Love your dance!
@davidhero125
@davidhero125 2 жыл бұрын
Damn, that intro was sure fireeeee
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Thought it was good
@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.
@dave4347
@dave4347 2 ай бұрын
Doc would be proud of that dance
@lamprospitsillou6325
@lamprospitsillou6325 2 жыл бұрын
Amazing Prime! Please put the git link in the description, people are gonna wanna use Harpoon after this !
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
OHH NO! sorry :)
@k1mpman
@k1mpman 2 жыл бұрын
found this guy some days ago and im addicted hah
@Guergeiro
@Guergeiro 2 жыл бұрын
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 жыл бұрын
most excellent :) Here is some free oil
@hamburger-fries
@hamburger-fries 2 жыл бұрын
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!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
that is awesome!
@eliodrallag4806
@eliodrallag4806 2 жыл бұрын
The nft joke had me subscribed 😂😂😂😂
@KENTOSI
@KENTOSI 2 жыл бұрын
I came for the vim knowledge, I stayed for the screaming. And dancing.
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
excellent :)
@albertlee9592
@albertlee9592 2 жыл бұрын
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
@leofreiitas
@leofreiitas 2 жыл бұрын
Man I love this guys kkkkkkkkkkkkkkkkkkkkkkkkkkkk
@leknyzma
@leknyzma 2 жыл бұрын
I thought you are going to cry on the end :D :D
@narwashius1176
@narwashius1176 2 жыл бұрын
love it!
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Ty
@nahidahmed9153
@nahidahmed9153 10 ай бұрын
love ur plugins
@empirechen
@empirechen Ай бұрын
This is the most intensive video I have ever watched. Inject Ritalin into this giy😂
@NikolaNevenov86
@NikolaNevenov86 Жыл бұрын
ok I'm hooked
@slipcurve1410
@slipcurve1410 2 жыл бұрын
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 жыл бұрын
yeah. Sounds like we are the same :)
@sasipraveen5257
@sasipraveen5257 2 жыл бұрын
Hope you had a wonderful day at your first day of Netflix after the holidays
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
its been great!
@elixirfun
@elixirfun Жыл бұрын
What key mappings do you personally use with Harpoon?
@le0nz
@le0nz 2 жыл бұрын
Great talk, miss a little the coconut oil tho
@codemonk9
@codemonk9 2 жыл бұрын
dude I love you
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Thank you
@mhmmdshaz98
@mhmmdshaz98 2 жыл бұрын
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 жыл бұрын
!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 .😛.
@nickmills8476
@nickmills8476 Жыл бұрын
Installed for 2023!
@sasipraveen5257
@sasipraveen5257 2 жыл бұрын
RAUULLLLLLL
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Por que maria?
@mcfincher29
@mcfincher29 2 ай бұрын
I fucking lost it at the interpretive dance. I love ThePrimeagen lol
@tinnick
@tinnick 2 жыл бұрын
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 жыл бұрын
This is a great idea. Make an issue, consider it yourself. I don't use the window to navigate. Or bother TJ
@redone729
@redone729 2 жыл бұрын
You really need to do a brand new VIM setup now
@N0thingFR89
@N0thingFR89 2 жыл бұрын
i can do it, I CAN DO ITTT
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
I CAN DO IT TOO
@ismail-talb
@ismail-talb 2 жыл бұрын
'somebody should make an NFT out of this" 😂
@user-bp8ez5gk2i
@user-bp8ez5gk2i 2 жыл бұрын
You have strong vibes of Michael Scott (played by Steve Carell) from The Office
@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.
@noahklauck
@noahklauck 10 ай бұрын
af pluth-pluth @9:33 killed me....
@chyldstudios
@chyldstudios 2 жыл бұрын
This shit is epic.
@pascualsu
@pascualsu 2 жыл бұрын
hey Prime, I haven't noticed before but sometines your voice sounds a lot like Steve Carell's
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yeah. People say that.
@mvargasmoran
@mvargasmoran 2 жыл бұрын
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.
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
yeah! exactly!
@garkeinen7034
@garkeinen7034 2 жыл бұрын
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.
@aitorramirez5173
@aitorramirez5173 Жыл бұрын
We also want Harpoon for Vim!!!! 😭
@juangamboa2646
@juangamboa2646 2 жыл бұрын
This is amazing, too much coconut oil to digest, well done!
@darccau7204
@darccau7204 2 жыл бұрын
Nice
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
ty
@goodoleme747
@goodoleme747 Жыл бұрын
I must have something messed up... when harpoon back to my files, it goes to a blank buffer.
@scottspitlerII
@scottspitlerII 2 жыл бұрын
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
@ColinDdd
@ColinDdd 2 жыл бұрын
thanks hackerman
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
@darioh785
@darioh785 2 жыл бұрын
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 :)
@rodelias9378
@rodelias9378 2 жыл бұрын
TJ!!
@Volatuhl
@Volatuhl 2 жыл бұрын
What was the song you were jammin to?
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
NCS release - Happy
@Volatuhl
@Volatuhl 2 жыл бұрын
@@ThePrimeagen Legend, thanks!
@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? (:
@shailmurtaza9082
@shailmurtaza9082 9 ай бұрын
I had same experience as yours. I had to turn off my computer to exit from VIM
@lucasteixeira5346
@lucasteixeira5346 2 жыл бұрын
When are your videos going to be uploaded to Netflix? They are loosing a business opportunity here
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
That is how I feel
@reo101
@reo101 2 жыл бұрын
Can you harpoon the coconut oil?
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
nope. Haproons come with oil already on them.
@losthighway4840
@losthighway4840 Жыл бұрын
insane the leghths some will go to avoid using fuzzy finding or gasp a mouse.
@brunomello7499
@brunomello7499 2 жыл бұрын
like how after the dancing he changes into OutOfBreathPrimeagen for the rest of the talk
@zenmachina6735
@zenmachina6735 2 жыл бұрын
3:45 lol, did you say "no me gusta" ?
@worgenzwithm14z
@worgenzwithm14z 2 жыл бұрын
THE VSM
@0x80fr
@0x80fr 2 жыл бұрын
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.
@luxusAI
@luxusAI 2 жыл бұрын
why move to Tmux? isn't it to slow?
@tusharkuntawar6170
@tusharkuntawar6170 2 жыл бұрын
mind == blown > True
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
ya ya :) hope you liked it
@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 жыл бұрын
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
@nathanbourquin6554
@nathanbourquin6554 Жыл бұрын
“Try shift for a straight line”
@sasipraveen5257
@sasipraveen5257 2 жыл бұрын
GET that oil
@ThePrimeagen
@ThePrimeagen 2 жыл бұрын
Got that oil
@BogdanTheGeek
@BogdanTheGeek Жыл бұрын
Why not just use tabs? They are numbered, ordered and you can save them as sessions.
I Love Neovim But I WONT Use It | Prime Reacts
23:22
ThePrimeTime
Рет қаралды 112 М.
The biggest lie about programming?  REACTING to tech twitter
16:50
ThePrimeagen
Рет қаралды 418 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 65 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 11 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 62 МЛН
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 45 М.
From Meth To Netflix
10:30
ThePrimeagen
Рет қаралды 737 М.
Git's Best And Most Unknown Feature
8:14
ThePrimeagen
Рет қаралды 250 М.
“We Have Been LIED TO...” The Dr Banned For Speaking Out | Dr Aseem Malhotra
21:41
How I take notes as a Math major using Vim + LaTeX
20:14
SeniorMars
Рет қаралды 1 МЛН
Vim Tips You Probably Never Heard of
12:11
Luke Smith
Рет қаралды 115 М.
Learning Vim in a Week
23:51
thoughtbot
Рет қаралды 463 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
NeoVim Harpoon 2 Open Source Work
1:14:25
TheVimeagen
Рет қаралды 35 М.
Neovim Is a Waste Of Time, And I LOVE It | Prime Reacts
17:00
ThePrimeTime
Рет қаралды 86 М.
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 25 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 7 МЛН
Самые крутые школьные гаджеты
0:49