How to Vim in 2023: Tips and Tricks
HTML-код
- Опубликовано: 30 мар 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 - Наука
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 💀
You feel 3x faster or you are 3x faster
I just use Dance extension in vscode and create my own mappings
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.
Copilot works in nvim
@@Danielo515 it does, but works better in vscode imo. I'll keep testing though.
"i use dvorak" DUDE IS THE PERFECT CHADSTACK 😭😭😭
kick docker out and get dvorak in!
btw
He uses programmer dvorak i think
but is he using dvorak in the video? I'm a beginner in dvorak, writing this took me a while xd
@@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
Guys I just figured out that pressing "I" lets you type things.
I'm not lying it worked a minute ago.
now try exit vim
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
@@mixed_nutsbasic nav on the home row is nice
@@mixed_nuts could you please send a snippet showing how you did it ? i would like to try this as well
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
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.
@@jasonconsiglio5256 try hyprland (or sway) instead of i3
@@yavko why?
@@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?
@@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.
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?
Nice to see ThePrimeTime posting on his secondary channel every once in a while ;)
gotem
Yes, I am also glad to see him finally giving his second channel some love.
ThePrimeTime channel got some very good videos and they are so much better than those clickbait videos
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!
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.
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!
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.
Yep this
check these out - vimspector, nvim-dap
Debugging is an anti-pattern :) Write better code
@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
@@IgorRoztr you certainly have no experience dealing with other people code
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.
I am really inspired by your videos and moved completely to vim and just love it. Thanks for all this amazing content.
I'd love to see different configurations and workflows, this was really inspiring and awesome to see the different tools being used
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 🙏
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).
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.
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.
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!
it hurts, but at least you recognize :)
@@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)
@@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.
@@j1d7s There's also `Telescope marks`
I literally configured nvim 3 hours ago and you post next tutorial, you're a saint man!
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.
Finally watched this, picked up so many things, great video!!
truly need more of this. Something like advanced usage of vim-fugitive
Yes…that’s the stuff. Please keep digging deeper into the vim workflow. Simply amazing. Let’s go!1
amazing video!! would love a "how to use your terminal" with your transitions between command line, project in neovim and neovim config
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 💯
I literally watched neovim setup video yesterday. This is perfectly timed.
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!
Thank you! I just learned the 'gd' thing with the lsp from this and it had made my life much better.
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
Just recently switched from VSC to Neovim, so it would be great to get more helpful videos like this one 👍🏼
I recently switched to vim because of you, much appreciated boss 🙏
Turns out creating your own config really isn't that difficult
Wait does it have syntax highlighting?
@@zappist751 yup it does!
You just gave me some great ideas to improve my git workflow. Great video!
Awesome video! Finally! Please give us more of those!!
Thanks world that these guys are exist and pushing us to use amazing tools like VIM. This video did my boring Monday
Mygod so perfect timing. Just finished you 0 to lsp. You are a blessing
yayayayaya
The part of solving conflict is so neat. thanks!
fugitive is amazing
Watched half of video with pause / double checking your workflow 😀. Thanks for sharing it.
You make this look so simple!!
thats what years of practice looks like baby
What a great video, the git part was amazing, keep the good work man!
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.
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.
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!
Thank you for inspiring youths to use vim, linux, i3, tmux, Rust, ergonomics keyboard and dvorak.
Any consideration for the underrated F.A.R.T (Flask, AWS, React, Tailwind) stack?
I'm more of a VAG (Vue, AWS, Go) stack kinda guy
@@seaweedglob golang aws next tailwind
@@seaweedglob trust me react i better than vue
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!
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
This is great. Would love to see more about your i3, tmux and git worktree workflows
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
This reminds me of watching a star craft 2 pro explain all the hot key mappings lol
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.
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
Great video! I've yet to break away from jetbrains for merge conflict resolution, but that was a cool workflow.
I'm just commenting to please the algorithm because more people should be using vim
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.
Love the video. Surely want to see tmux/i3/vim workflow.
thank you! Also you convinced me to try Fugitive!
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😃.
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 !
This is the only channel that I have to listen on 0.75 speed.
And (slap) we need more videos
I love your passin and start a own vim series here. I want to learn!!!
Now I know what Towlie felt like, I have no idea what's going on. Love it!
Good one buddy
love your personality in videos
Holy fuck I was scratching my head when you set the bindings for Harpoon in the neovim video and NOW IT ALL MAKES SENSE.
yayayaya! DVORAK BABE
Thank you for the merge conflict demo 🔥✨
I don't use Vim or intend to, but cannot stop watching him using it - it is too satisfying
become the satisfaction yourself :)
Best video on Neovim I've seen up until now... by far.
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
I started learning how to be a programmer recently. I've installed Ubuntu and read some very basic introductory book about it. I bound some applications to the F keys which is already so much better than using your mouse or alt-tab on windows. Currently I'm learning vim from a book. I can see the power of all the different editing commands.
I'd be very much interested in a video about all of those other productivity tools you mentioned.
That's called procrastination. You can program in freaking notepad, when you get actual job you will see that 90% of time is not spend on writing text but thinking
May the algorithm bless and keep you
BLAZINGLY USEFUL INFO! THANKS YOU
This video has so much energy!
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!
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.
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.
LETS GO THEPRIMEAGEN BACK WITH THE BEST CONTENT!! VIM!
yaya
Honestly I enjoy prime's videos so much I just like them :)) he's good at both entertaining and coding.
As a chronic saver, you should map w (or similar) to :w ...
Yes please, you;re doing some awesome stuffs man.
To move that fast between windows I use Sway windows manager. Top notch video !
Thank you, Mr. ThePrimeagen!
Since I've gotten into:
- NeoVim (Harpoon, Telescope, Lsp, etc...)
- Tmux-Sessionizer
- Rust
You made my life better.
Wait, Tmux-sessionizer ?
awesome vim video! practical AF and exactly what I needed. what is the fugitive remap you made for git push?
This is peak chad, love the vim videos
always will be
amazing videos, just subbed ty ser
God, it's the sequel we've been waiting for
For going to a file and line, on the commmand line, specify the file, colon line. Thst can typically be copy pasted from the compiler output.
And if using screen or tmux, console copy paste is 💯% keyboard ⌨️.
Nice movements, btw, love harpoon.
Prime I didn't know the fugitive is so AWESOME I'm using other plugin but many time I'm lost to resolve merge conflicts, every time had been nightmare! After today I will mastered vim fugitive and BIG THANKS!!
It's one of my favorite features is the conflict resolution
I hope you have a good one. Dalton
Entertainment and educational values are truly at pinnacle.
That's the video I was waiting for
So good I liked it twice!
That's some crazy stuff going on! Hahahah... I started using vim for a month and I'm enjoying... but still use VS as main editor.. one day I'll get used to that!!
I need a summary of those shortcuts, really handy!
Oh my, I’m already pumped up for that Prime React video coming where Prime reacts to Prime neovimming in 2023.
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
At around 10:05 you cut off the name of the neovim context plugin
looking at his dotfiles, it's this one: nvim-treesitter/nvim-treesitter-context
nvim-treesitter-context
This was super useful, thanks!
yayaya! :) ty ty
We need that followup vid to be efficient with using our computers! Jumping between browser and vim, tmux stuff etc! 👌
awesome as always!
Gotta say this is a very underrated channel.
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.
We will we will rock vim
Thanks Freddie
wich is Cleary! . . is The Most Complex way to edit text!! 👌💯