Three things I would have recommended: 1) get kickstart config file 2) use lazy instead of packer (it gets installed with kickstart) 3) use vimtutor instead of going through video tutorials first
@@S0ft_b4b3 problem with such a low level tool is that people making tutorials will go over core motions quickly and jump to the advanced stuff, and also teach preconfigured shortcuts that they have setup, whereas in newbie times we should focus on core motions much more and get comfortable with them
@@acidbunny999 neovim builds projects? neovim is a text editor/IDE with plugins not a compiler or a build tool. you don't know what your'e talking about. you can build things from the terminal it has nothing to do with vscode or nvim.
vim skill is invaluable. you learn it once and you have it for the rest of your life. most IDE and text editors has vim emulation. most linux utilities has vim-like keybindings
LazyGit, LazyDocker, bat ... there's also zsh vi mode that lets you use VIM bindings in the terminal that was great for me because I worked on windows, Linux and Mac machines and it standardised them all for me
I became unable to use anything but neovim after 6 months of using it. Which is fair. Vim/neovim isn't really easy lol. But it's fun and fucking powerful
@@no_name4796 yeah.. I was using kakoune.. I think it's a better experience but neovim has a lot of users so there will be more plugins and what not.. I'm not programming so it's not really useful to me, was just messing around.
"You really feel like you are doing something cool instead of just typing plain text" I agree. This is why I use vim. (also, it's so lightweight compared to other editors)
@@jhossepmartinez1771 just checked with a file I'm working on nvim: 28mb vscode: 510mb Tho this is not a fair comparison, the vscode is a fresh install and nvim has a ton of plugins.
A week is not enough to get used to vim keybindings, imo. Also, you don’t necessarily have to jump into neovim customisation, which adds more complexity on top of that. Many IDEs support vim mode and it is a great way to memorise vim motions without having significant performance degradation. And you still can have access to all that IDE goodness. When I learned to use vim motions I tried to keep vim mode on as much as possible, but from time to time, when I got to do something really quick and my struggle with the editing started to become an impediment, I just temporarily disabled the plugin. And then at some point I realised that I don’t need to turn it off anymore. I can’t say for sure that vim makes me faster tbh, but it is definitely a more enjoyable experience than using a mouse.
I used to use nvim for like a year, then I switched to zed some weeks ago and well, tbh I think it's even better since even after a year there were keybinds I was not familiar with but with zed if you type : in normal mode you get a small window where you can either continue to type the keybinds you initially wanted to or type it as plain text and see the keybinds for it The integration of vim in zed is really good
I've been using vim (and now neovim) since a project at a job didn't allow easy usage of a IDE. Glad I made the switch. Best part is you will always have vi/vim on almost every Linux machine. Plus the not having to switch to the mouse, reducing repetitive wrist movements is a plus. Just once you get good enough and you convince someone to try it, they ask you "how do you do X" and you don't know, its just muscle memory; so you have to do it for them once to remember the keystrokes.
Saw a video on my home page with Primeagen on the thumb and I had to click it. By the way, I think the one of the reasons Neovim forked off Vim was because Bram Moolenaar, the original author and maintainer of Vim did not welcome community Pull Requests (nobody is sure why) and basically every change to vim was done by him. Not so long after the fork, Neovim became a superset of Vim with much richer ecosystem of packages and plugins made in (much more sane language) Lua.
there's a huge overhead to having additional configuration in Lua (vimscript is still in nvim) and it would be reasonable not to accept that into mainline
Keep on the grind bro. Vim efficiency will definitely make sence to you once you master the advanced motions as well in your muscle memory. Don't give up half way. Take my word for it. Once you learn vim completely you will never go back to vscode. That's definitely a bold statement, but you'll say the same after mastering the art of vim. Great video btw.
Continue using it.❤ There is no going back from its motions. One either tries it for a day and can't resist, it never gets easier for them. Or keep going and stick with it forever. Even if you leave, half of your brain will refuse to do anything but think about it. If primeagen reads this comment, thank you. It feels like birdbox but in a good way.
Not to mention there are other programs like file manager, web browser etc. That can have vim motions as well. I've been using ranger file manager for a long time now and it's just amazing
I did a reverse switch some years ago: from vim to VS Code. And if I need to work with text files quickly, I use micro. I can still use vim, I didn't forget it, but I got fed up with the endless customization.
It's not about memorizing all the keybindings, vim commands are like a language, if you get that idea then it's really easy you just have to form the commands using the language of vim.
Tried vim for a week too, unless you are programming simple task using popular programming language, it's very very steep learning curve even more so if u've programmed for years using another editor. you need to remove a lot from your muscle memory and add a bunch more thats tricky.
Best path to learn nvim: Use vsc with vim plugin. Learn vimmotion. Plus add/modify keybinds for easier file navigation, in built terminal shortcuts. See the value of vim motion. After that start configuring and transition to neovim.
vim takes a while to get good at. normally takes months to reach equal proficiency which involves continuously asking "is this the best way to do this?"
the near infinite skill ceiling is a big plus for me,on vim im almost reaching the levels of my old vscode setup, plus saves a lot of power on my computer and i type faster
I think people underestimate how fast and accurate a mouse can be and overestimate how long it takes to get your hands back to the home row. Especially since a lot of the time you are copy pasting code from a browser so you can't use vim keybinds there. And I never hear anyone explain exactly what makes vim faster. It's always really vague. I never hear people mention specific commands they used often that saved significant time.
vim makes your reaction speed faster. as a certified vim user, it trained me to tell others that I code in nvim within 63ms after entering a room. aiming to lower it below 50ms
I started out learning vim with vsc vim motions. I then tried to switch to actual nvim by trying multiple nvim configs. All of them sucked at auto indents and it drove me crazy. So I am sticking with vsc and vim motions. Pretty sad honestly.
I have been using neovim for about 6 months now. It is amazing. Has it boosted my productivity? Depends on who you ask. I totally haven't put hundreds of hours just into my neovim config... haha
I use vim motions everywhere. It's just way less tiring to code then coding without it. I'm not really good at it and I press random keys accidentally often but it's just more comfortable and fun to write anything with vim motions.
linux is all about Vim motions, go anywhere, navigate anywhere you will find it : less, man, ranger, .... and even in firefox you could use j and k but for advanced feature there is add-on but anyway - nvim is good, but most important part is vim motions - those give you real power and don't use packer use Lazy
It was hyped and killed recently by same people. I was watching one video of primegen, yeah, it's great, it's this and that, like he is the one using it and know what he talks. Then few weeks later, in another video he says, yeah, maybe you don't have to replace your vs code, it's just fine, you don't really need to learn something just for sake of learning and it actually have some learning curve to it. I like to program shell scripting, in several languages, but no, I'm not going neovim route, it's way too much for me, I just need good, fancy, jacked, terminal separated from place where I write code. Idea of writing code in same windows as terminal isn't dumb, but also isn't what is just good. It's needed only in specific scenarios, which can be done differently.
Vim learning pros and cons: Pros: - you'll feel comfortable editing files straight from console Cons: - you're only gonna use it to edit files through console
I find it funny how there are so many popular plugins to recreate the regular IDE experience. Not hating on Vim users, I'd even argue it almost doesn't matter what you use as IDE, it matters more how good you know it. So I'd say pick an IDE that seems cool to you and use that for a few years and make an effort to discover its features. If you are a true 10x dev though, you'd (obviously) develop your own highly custom IDE.
Drop neo-tree and get Oil. Configure it to use a floating window like telescope and summon it whenever desired. You can open either the correct buffer directory or the current working dir with different command.s Very fluid and unique experience once you get it dialed in.
For anyone who's thinking about joining his discord, don't. He has an admin that has the habit of constantly pinging everyone (even though a lot of people keep complaining from that) and when I pointed it out, he kicked me. A very bad, toxic and unmoderated server that I do not recommend at all.
Used to be a Helix user to be different. After coming to Neovim, I realized how much more stuff can scriptability provide. Still don't use it, but the feeling is fun haha
Good video, but the statement "fitting all the keybinds in your muscle memory" makes no sense. Muscle memory is when you have ingrained something so you don't have to think about it. I think you meant working memory?
Lmao I use Linux and vim A LOT but you seem like you could be so much more comfortable with just code. Nothing wrong with that! Stick to what you're most comfortable with! For my Python scripts I use code on my windows machine but for sh I stick to vim
Nvim by itself does not support any language. You use a lsp (Language Serve Protocol that is also what vscode runs in the background) that needs to be setup and configured correctly for the language you choose. That said, there are quite a lot of language servers for php so you have to find one that suites your needs, most of the time there is an official one sometimes you get more capabilities with a community developed one.
You will have a burnout after some time, maybe a month BUT when you come back to it after some months you will love it. neovim is like my ex gf, except that she doesn't exist but neovim does.
A veces entiendo porque los de windows se quejan de que en Linux todo es comando y codigo. Piensalo: "¿Porque gastarias cientos de horas en aprender Lua/Vimscript solo para customizar un editor?" :V
this guy vims
we
I use wim btw on arch writing drivers in rust compiling it from hand
He's collecting the "btw" stones
Openrc btw
@@fedpo6022 Dinit rules.
@@fedpo6022runit btw
Three things I would have recommended:
1) get kickstart config file
2) use lazy instead of packer (it gets installed with kickstart)
3) use vimtutor instead of going through video tutorials first
The sad thing is that newbies make those videos about technologies they know nothing about without bringing any value, just confusing other newbies.
@@Jan-gl7mn yeah.. vim ALREADY made a very good tutorial. But our habits get us everytime
Thanks for sharing :)
Newbie here in nvim, have to say that tutor is amazing and help a lot to get out tutorial hell
@@S0ft_b4b3 problem with such a low level tool is that people making tutorials will go over core motions quickly and jump to the advanced stuff, and also teach preconfigured shortcuts that they have setup, whereas in newbie times we should focus on core motions much more and get comfortable with them
Oh no. He is mutating to a vim user
oh yeah, nvim is awesome and ultra powerful
Nah, just one one of those YT channel that make a video on things they know little about and repeating others.
What do you use? VSbloat?
@@psi4j Vim or Neovim with plugins is also bloat. especially Hipster neovim that will crash for many plugins
@@acidbunny999 neovim builds projects? neovim is a text editor/IDE with plugins not a compiler or a build tool. you don't know what your'e talking about. you can build things from the terminal it has nothing to do with vscode or nvim.
vim skill is invaluable. you learn it once and you have it for the rest of your life. most IDE and text editors has vim emulation. most linux utilities has vim-like keybindings
LazyGit, LazyDocker, bat ...
there's also zsh vi mode that lets you use VIM bindings in the terminal
that was great for me because I worked on windows, Linux and Mac machines and it standardised them all for me
You need to try it for 12 years to figure out whether it is productive.
I became unable to use anything but neovim after 6 months of using it.
Which is fair. Vim/neovim isn't really easy lol. But it's fun and fucking powerful
@@no_name4796 yeah.. I was using kakoune.. I think it's a better experience but neovim has a lot of users so there will be more plugins and what not.. I'm not programming so it's not really useful to me, was just messing around.
@@no_name4796 who tf has so much time to invest though
@@no_name4796 Same for me, just tried for 6 months maybe and now i cant use any other IDE, text-editor without the VIM extension/plugin haha
just three months and I become at least 400% more productive compared to VsCode.
"You really feel like you are doing something cool instead of just typing plain text"
I agree. This is why I use vim. (also, it's so lightweight compared to other editors)
true
ram tho
@@jhossepmartinez1771 just checked with a file I'm working on
nvim: 28mb
vscode: 510mb
Tho this is not a fair comparison, the vscode is a fresh install and nvim has a ton of plugins.
What do you mean by lightweight?
@@chovnyk_pluveitll run without issues on a thinkpad t42
A week is not enough to get used to vim keybindings, imo. Also, you don’t necessarily have to jump into neovim customisation, which adds more complexity on top of that. Many IDEs support vim mode and it is a great way to memorise vim motions without having significant performance degradation. And you still can have access to all that IDE goodness.
When I learned to use vim motions I tried to keep vim mode on as much as possible, but from time to time, when I got to do something really quick and my struggle with the editing started to become an impediment, I just temporarily disabled the plugin. And then at some point I realised that I don’t need to turn it off anymore.
I can’t say for sure that vim makes me faster tbh, but it is definitely a more enjoyable experience than using a mouse.
true that
I use Arch, btw!
I used to use nvim for like a year, then I switched to zed some weeks ago and well, tbh I think it's even better since even after a year there were keybinds I was not familiar with but with zed if you type : in normal mode you get a small window where you can either continue to type the keybinds you initially wanted to or type it as plain text and see the keybinds for it
The integration of vim in zed is really good
3:23 rip packer
Packer is dead. Use lazy.nvim!
I love the troll picking packer when the reddit post even says packer's creator uses lazy.
I've been using vim (and now neovim) since a project at a job didn't allow easy usage of a IDE. Glad I made the switch. Best part is you will always have vi/vim on almost every Linux machine. Plus the not having to switch to the mouse, reducing repetitive wrist movements is a plus. Just once you get good enough and you convince someone to try it, they ask you "how do you do X" and you don't know, its just muscle memory; so you have to do it for them once to remember the keystrokes.
Where is the "Prime needs to see this" button?
Great Video, this motivates me to really try out neovim or vim in general again.
definitely recommend neovim with the plugins you can get for it
“Gaining popularity from all these streamers” - 90% of the videos shown are Prime.
Saw a video on my home page with Primeagen on the thumb and I had to click it.
By the way, I think the one of the reasons Neovim forked off Vim was because Bram Moolenaar, the original author and maintainer of Vim did not welcome community Pull Requests (nobody is sure why) and basically every change to vim was done by him. Not so long after the fork, Neovim became a superset of Vim with much richer ecosystem of packages and plugins made in (much more sane language) Lua.
there's a huge overhead to having additional configuration in Lua (vimscript is still in nvim) and it would be reasonable not to accept that into mainline
I heard that the main reason for forking was that there was no async execution in vim
Well, not everyone writes good code (if not most people, he probably didn't want to deal with that)
@@7heMech Neovim clearly have better code source than Vim
I use Claude to ask for common Vim stuff when I have to do something specific, helps a lot.
Keep on the grind bro. Vim efficiency will definitely make sence to you once you master the advanced motions as well in your muscle memory. Don't give up half way. Take my word for it. Once you learn vim completely you will never go back to vscode. That's definitely a bold statement, but you'll say the same after mastering the art of vim. Great video btw.
thankyou, hope so
Vscode has vim
@@wanikhawar Yeah, for noobs. You can't use the advanced vim motions in vscode.
@@hrshlgunjal-1627 There's also a neovim extension which can do everything I heard. What motions are you talking about?
Continue using it.❤ There is no going back from its motions. One either tries it for a day and can't resist, it never gets easier for them. Or keep going and stick with it forever. Even if you leave, half of your brain will refuse to do anything but think about it. If primeagen reads this comment, thank you. It feels like birdbox but in a good way.
Im not switched for productivity, but to have fun editing code. And its works 😀
🫡😆
here before this video get viral...BTW soo good videoooooo
thankyou
second this
Vim + Tmux + a nicely configured shell is the way to go.
+ i3wm or any tiling window manager.
Maximum productivity + getting banned from the local Macdonald's for suspicion of hacking.
It's great for lower spec computers. Vscode was making my Mac sound like a vacuum cleaner, neovim used like 5% of cpu
Not to mention there are other programs like file manager, web browser etc. That can have vim motions as well. I've been using ranger file manager for a long time now and it's just amazing
cool
doesn't matter how fast you can code, you're still gonna spend half your time googling
If you code for long enough, google just stops having answers for your questions
or ChatGPT now instead of Googling
fast code help in error figuring and rapidly change any feature check new thing
True
@@kamilmensik6521 This is so true
I did a reverse switch some years ago: from vim to VS Code. And if I need to work with text files quickly, I use micro. I can still use vim, I didn't forget it, but I got fed up with the endless customization.
happens
It's not about memorizing all the keybindings, vim commands are like a language, if you get that idea then it's really easy you just have to form the commands using the language of vim.
True that
Tried vim for a week too, unless you are programming simple task using popular programming language, it's very very steep learning curve even more so if u've programmed for years using another editor. you need to remove a lot from your muscle memory and add a bunch more thats tricky.
True
Best path to learn nvim:
Use vsc with vim plugin. Learn vimmotion. Plus add/modify keybinds for easier file navigation, in built terminal shortcuts. See the value of vim motion.
After that start configuring and transition to neovim.
vim takes a while to get good at. normally takes months to reach equal proficiency which involves continuously asking "is this the best way to do this?"
the near infinite skill ceiling is a big plus for me,on vim im almost reaching the levels of my old vscode setup, plus saves a lot of power on my computer and i type faster
I think people underestimate how fast and accurate a mouse can be and overestimate how long it takes to get your hands back to the home row. Especially since a lot of the time you are copy pasting code from a browser so you can't use vim keybinds there. And I never hear anyone explain exactly what makes vim faster. It's always really vague. I never hear people mention specific commands they used often that saved significant time.
vim makes your reaction speed faster. as a certified vim user, it trained me to tell others that I code in nvim within 63ms after entering a room. aiming to lower it below 50ms
ci( is a massive time saver (change inside brackets)
oohh, can't wait to have prime react to this
ping him 😔
I started out learning vim with vsc vim motions. I then tried to switch to actual nvim by trying multiple nvim configs. All of them sucked at auto indents and it drove me crazy. So I am sticking with vsc and vim motions. Pretty sad honestly.
I might try that, too many people recommending
I have been using neovim for about 6 months now. It is amazing. Has it boosted my productivity? Depends on who you ask. I totally haven't put hundreds of hours just into my neovim config... haha
😆
we lost another soul... good video btw
haha, thanks mate :)
I use vim motions everywhere. It's just way less tiring to code then coding without it. I'm not really good at it and I press random keys accidentally often but it's just more comfortable and fun to write anything with vim motions.
1:46 do you know what else is massive ?
How can I edit Notes w/ VIM?
Apple notes I mean.
Thanks!
2:26 ty for the flashbang
x2
One of us!! One of us!!
yay
I still don't see why I would ditch VS-code for Vim. I can do all these on VS-code too
Primeagen approved video 👍🏾
letsgoo
linux is all about Vim motions, go anywhere, navigate anywhere you will find it : less, man, ranger, .... and even in firefox you could use j and k but for advanced feature there is add-on
but anyway - nvim is good, but most important part is vim motions - those give you real power
and don't use packer use Lazy
ALANZOKA MENTIONED BRAZIL MENTIONED 5:12
NvChad kinda opens for every beginner
Thanks for the honesty.
🫡🫡🫡
It was hyped and killed recently by same people. I was watching one video of primegen, yeah, it's great, it's this and that, like he is the one using it and know what he talks. Then few weeks later, in another video he says, yeah, maybe you don't have to replace your vs code, it's just fine, you don't really need to learn something just for sake of learning and it actually have some learning curve to it. I like to program shell scripting, in several languages, but no, I'm not going neovim route, it's way too much for me, I just need good, fancy, jacked, terminal separated from place where I write code. Idea of writing code in same windows as terminal isn't dumb, but also isn't what is just good. It's needed only in specific scenarios, which can be done differently.
What are the odds I just find your channel watch your Linux video and you just list like right now
🫡
Hang on dude. You will be editing your files *blazingly* fsst soon. Don't forget Harpoon. Genuinely one of the best plugins, next to Telescope
Vim learning pros and cons:
Pros:
- you'll feel comfortable editing files straight from console
Cons:
- you're only gonna use it to edit files through console
I've officially been on neovim for about a week (graduated from Vim Motions) and... I am not fast at this.
I likes using Vim but after switching keyboard layout to colekak dh it became unbearable. And remapping keys is too much of a hassle
You know there is a plugin in vscode for vim right?
yeah, I use that atm
You should have chosen lazy, bad mistake
Ive been using packer for over 2 years and have been meaning to try out lazy. Choosing a package manager is quite low stakes.
Yeah lazy is awesome
change to lazy.nvim, packer isnt maintained by the dev anymore and lazy.nvim provide lazy-loading support which is better for performance
Also the dev uses lazy himself
@@leksluthor3 lol
yeah, vi is efficient, but have you tried xah fly keys?
I find it funny how there are so many popular plugins to recreate the regular IDE experience.
Not hating on Vim users, I'd even argue it almost doesn't matter what you use as IDE, it matters more how good you know it.
So I'd say pick an IDE that seems cool to you and use that for a few years and make an effort to discover its features.
If you are a true 10x dev though, you'd (obviously) develop your own highly custom IDE.
haha, looking forward to developing my own
I agree that for first time use is difficult but nvim kick-starter and tjs video helped a lot
now your on neovim ❤ NICEEE
packer is unmaintained ☝️
Fun fact the author of packer uses lazy in his personal config
Lazy is nice. But as long as it installs packages the one time a month I mess up my vim config I'm content.
@@twistedfish4936 people just wanna go simple
Seriously? Lmfao@@twistedfish4936
Isn't packer unmaintained?
yeah just got to know that 😆
@@stupidgeek I found out the other day when I was looking for a plug-in manager, new to neovim myself lol
Drop neo-tree and get Oil. Configure it to use a floating window like telescope and summon it whenever desired. You can open either the correct buffer directory or the current working dir with different command.s Very fluid and unique experience once you get it dialed in.
neo-tree can also open in a popup. oil seems good but overkill for normal file operations.
In one week i wasn't able to set my configuration hagagah
mine isn't ready either, I just got the basic tools working
For anyone who's thinking about joining his discord, don't. He has an admin that has the habit of constantly pinging everyone (even though a lot of people keep complaining from that) and when I pointed it out, he kicked me. A very bad, toxic and unmoderated server that I do not recommend at all.
Now I gotta join the disc serber
should havw gone for lazy because packer is not maintained anymore. i did the same mistake because of the primeagens ood video
us
tip: instead of :wq you can just do :x
lifesaver
I use arch btw
🫡
bro, you should use lazy instead of packer
He should also not do YT videos about things he only used for a week.
yeah, bad choice mine haha
You forgot to talk about Vi, which inspired Vim
Came for the pepe, stayed for vim
Yayyyy
I even installed vimum c extension on chrome without vim i can't doing my job
I tried neo vim too but it’s annoying to learn need time
So… Vi -> Vim -> NVim?
I might try Kakoune
Wait, you didn’t talk about debugging
we don't debug 😔, haha
I tried it and hated it. Editor should be tool for the job and not something that i have to learn 4 hours a day to even be 1% productive of vscode
depends person to person
Used to be a Helix user to be different. After coming to Neovim, I realized how much more stuff can scriptability provide. Still don't use it, but the feeling is fun haha
Dude you know you could just install VIM vscode plugin if you only wanted the efficiency (which vscode keybindings almost provides) -_-
yeah, it was just for fun trying nvim
The learning curve is approximately 6 months. After a month you're hooked. After 6, you're screwed. Because you can't use anything else.
Good video, but the statement "fitting all the keybinds in your muscle memory" makes no sense. Muscle memory is when you have ingrained something so you don't have to think about it. I think you meant working memory?
I also use arch and vim btw
i code in arch with nvim in rust btw
cool
Dont use lsp-zero as a newbie. Just use the native lsp api. Your future self will thank you for it.
Thanks for sharing
How do you make your videos?? 😅
on my laptop XD
can't let you off that easy software and os?
Lmao I use Linux and vim A LOT but you seem like you could be so much more comfortable with just code. Nothing wrong with that! Stick to what you're most comfortable with! For my Python scripts I use code on my windows machine but for sh I stick to vim
Congrats !
Does Nvim support php?
Nvim by itself does not support any language.
You use a lsp (Language Serve Protocol that is also what vscode runs in the background) that needs to be setup and configured correctly for the language you choose.
That said, there are quite a lot of language servers for php so you have to find one that suites your needs, most of the time there is an official one sometimes you get more capabilities with a community developed one.
Now try Neovide and your experience will be complete.
I really suggest reading the user manual, start with :help
sure thanks
Please use Lazy instead of Packer
sure
Bro choose packer 😢
sad 😔
You will have a burnout after some time, maybe a month BUT when you come back to it after some months you will love it. neovim is like my ex gf, except that she doesn't exist but neovim does.
True
Now time make a video about Emacs xD
One month challenge
I'll try to
is arch linux better than ubuntu?
I use nvf in nixos
WELCOME
There is some mistakes in the video but overall good one
A veces entiendo porque los de windows se quejan de que en Linux todo es comando y codigo.
Piensalo: "¿Porque gastarias cientos de horas en aprender Lua/Vimscript solo para customizar un editor?" :V
A week huh
Use Lazy pls
ok sir
Love nvim! ❤