How to ACTUALLY switch from VS Code to Neovim

  Рет қаралды 164,495

Joshua Morony

8 ай бұрын

Vim is notoriously hard to use if you are not familiar with it, but people also go on about how great it is. It took me a few tries, but this video details how I managed to finally make the switch to neovim from VS Code after some failed attempts.
TJ's Lua Snips video: kzbin.info/www/bejne/ep-bYWOoobV8ntE
The Primeagen: www.youtube.com/@UC8ENHE5xdFSwx71u3fDH5Xw
My previous video that discusses neovim: kzbin.info/www/bejne/hma0gZSZr5dgl9E
Blog post series: alpha2phi.medium.com/learn-neovim-the-practical-way-8818fcf4830f
Get weekly content and tips exclusive to my newsletter: mobirony.ck.page/4a331b9076
Learn Angular with Ionic: ionicstart.com
0:00 Introduction
0:58 Step 1: Do you really want this?
1:17 Step 2: Vim Extension
2:14 Step 3: Neovim setup
3:07 Step 4: Neovim Extension
3:35 Step 5: The Terminal
4:23 Step 6: Experiment
4:58 Outro
#neovim #vscode #vim
- More tutorials: eliteionic.com
- Follow me on Twitter: joshuamorony

Пікірлер: 253
@the-real-pawook
@the-real-pawook 8 ай бұрын
but why
@Boomatang
@Boomatang 7 ай бұрын
I can give you my reasoning. Currently I am in transition period for the last month, still have not work out how to debug yet. But I spend most of my time in k8s clusters and there is the k9s tui that is fantastic for explore cluster and doing that debug work. k9s is always opened in a terminal. For the terminal emulator I use kitty which has great support of panes and tabs, with very fast switching between tabs. So now I can have code editor (neovim) in one tab and k9s in second tab, plus a random tab for watches or running kudectl commands. k9s also use mostly the same keybindings as vim. I still love the jet brains products. They are so good but for what I am doing the more time can have window focus on kitty the faster I can move. If I was doing web dev where there would be the constant switch to a web browser, I am not sure I would put the effort in.
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
Not pinning this to be an ass, but thought it might actually be useful for the people who like vim to share their "why" in this thread. Here is some of the reasons I like vim from another comment thread: "If I had to sum up my key reasons for preferring neovim, it's that I have a super lightweight coding environment that I can instantly pop up (I just hit Ctrl + J and I instantly get my terminal full screen) - I can very quickly jump between different projects without having to have say 4 different instances of my IDE open, I find coding with vim bindings and my own personal keymaps to be far more quick/satisfying/ergonomic, I can use all of my editors features/gizmos completely through the keyboard without ever having to touch the mouse, and I have a high degree of control over tailoring the editor to my own workflow. But, there is also this secondary benefit I think where because neovim forces you deeper into this configuration sort of environment (a downside), this same thing also leads to increased skills with languages and tools I wouldn't otherwise be using (i.e. lua and things like sed/grep)"
@KadenCartwright
@KadenCartwright 7 ай бұрын
For me it’s the latency, and the way you can type command a ahead of the UI without it messing up. You can type as fast as your fingers, not as fast as a UI can update. I describe it like when I was younger, I played fps games all the time. I would experiment with turning my sensitivity up slowly and after a while I could whip around a corner and get a kill way faster than the other guy. The speed of feedback gave room for muscle memory to develop and it was really fun. In vim/neovim, things can become muscle memory in ways that are hard with vscode, so once you develop that muscle memory, you really don’t have to think much. It just makes it easier for me to get into a flow state, which brings back a lot of the joy from when I first was learning to code. In short, I think vim/neovim makes coding more fun for me. It took a while to develop the skills to enjoy but I’m sure glad I did it. If you haven’t given it a shot I can’t recommend it highly enough, maybe you’ll start to have more fun programming too. And if not, hey ¯\_(ツ)_/¯ that’s ok too. At least you gave it a try and expanded your horizons a bit
@jackfeng2676
@jackfeng2676 7 ай бұрын
Everyone's more or less in a different situation, but I totally agree with the lightweighted coding environment point of view. I am working on a more-than-10-year-old machine and had a hard time using the default IDE which could causes the machine frozen now and then. Also I need to connect to the cloud from time to time in terminal so vim is more or less encoded in my DNA. The day I knew neovim, it conpletely changed my mindset. Now I use neovim with tmux in an ssh to another new machine. Sounds absurd but it actually works perfectly. Well, another point but equally important is that it feels soooo sexy when you can change something with only several strokes while the others need more than 1 min. Feels soooo good to get completely rid of the mouse while coding. Even my seniors now have no idea what I have just done and I would say I am just getting started. It's not only about productivity, but about how enjoyable it is to learn the optimization neovim provides and make use of it. Certainly worth trying it.
@qangeldratsch9643
@qangeldratsch9643 7 ай бұрын
Also vim and vim motions are just fun and if you really master even the basics, you feel like a god. When your muscle memory just kicks in, you do a fast ci( and your coworker sitting next to you just thinks "what the hell just happend". But honestly vim can just be fun and satisfying, once you get used to it. But the downside to using vimmotions on a daily basis is that you now feel awkward in every none vim text box, like in browsers or chats and you suddently just post a :wq somewhere out of habit
@lloydbonds9268
@lloydbonds9268 2 ай бұрын
I decide to switch to it on a whim. no "easing into it" with vim extensions in vs code. what i didnt know is that it would lead me down a path to learning containerization with docker, learning about linux, getting a better handle of github terminal actions, setting up a linux WSL, reading actual documentation. After a week of struggle I finally had my more or less completed nvim configuration...and I loved every step of the process, even the parts where I was banging my head up against the wall. Neovim became my favorite editor without even coding in it. Now that I do code in it, I love how fast it is...and im glad i dove head-first into it. I feel like it made me a better programmer.
@jamess.2491
@jamess.2491 2 ай бұрын
WSL???? I feel sorry for you my brother
@lloydbonds9268
@lloydbonds9268 2 ай бұрын
@@jamess.2491 yup, WSL. Setting it up wasn't so bad, it wasn't nearly as time consuming as actually messing with lua files for nvim. I originally tried to use virtualbox, but it was too slow and inconvenient.
@ascourter
@ascourter 7 ай бұрын
Great advice. Start slow and don't feel like you need to throw yourself into the deep end (unless you learn better that way ha!)
@BaoDuong-le4hk
@BaoDuong-le4hk 4 ай бұрын
1:50 - you can/should use command Vim: Toggle Vim Mode, instead of enable/disable then reload whole editor.
@toolbelt
@toolbelt 2 ай бұрын
Awesome video. I’m on a similar journey and am now in the mostly nvim phase. It’s wonderful.
@EdgarDev5010
@EdgarDev5010 Ай бұрын
I'm trying to learn neovim but sometimes it is so fricking hard ngl hahaha.
@NormalNvim
@NormalNvim 7 ай бұрын
Welcome to the community!!
@yashguma
@yashguma 7 ай бұрын
Thank you Josh you’re the best 😜
@jzmmm
@jzmmm 7 ай бұрын
I'm quite proficient in vi, but i switched back from terminal to vscode a couple years ago and use the vim extension. just maintaining/managing the plugins is easier on vscode.
@ro0t115
@ro0t115 4 ай бұрын
m a learner now but yeah i can see how difficult is to manage vim or nvim plugins but if you understand core principle it so easy now i am using lazy.nvim, is awesome but i am trying to install everything form scratch is quite confusing and i mean it eats time..... but the satisfaction i get after is worth it.. hah haha
@phoneywheeze9959
@phoneywheeze9959 4 ай бұрын
especially considering the new vscode profiles. Now I can have multiple profiles with different extensions installed for different environments
@TheBest-sd2qf
@TheBest-sd2qf 4 ай бұрын
Would say if you use lazyvim you won't have nearly the hazzle..once you figured out how they do it. Being able to script your editor on the fly is just awesome..though you can probably do that in vscode also I guess.
@lukassefcik9623
@lukassefcik9623 7 ай бұрын
What gruvbox color scheme do you use? I like your color setup and font also. It looks so clean.
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
I just use whatever the default is for gruvbox, you can check out my config here if you like: github.com/joshuamorony/nvim
@Arcane_Ayush
@Arcane_Ayush 7 ай бұрын
I gave my all to get used to VIM in one day using VS code extension... did 2-3 simple projects while having vim , now switched to neovim entirely cuz I feel I can get through this all ( day 10 )
@fichtensaft5149
@fichtensaft5149 4 ай бұрын
Well, did you?
@Joker-fj8hg
@Joker-fj8hg 4 ай бұрын
That’s crazy pace
@Arcane_Ayush
@Arcane_Ayush 4 ай бұрын
@@fichtensaft5149 yeah though I still do web development in VS code but I use VIm extension ( and NVIM for everything else , especially code review )
@polic72andDrD3ath
@polic72andDrD3ath 3 ай бұрын
Learning how to learn is definitely a big part of it too. Taking the time to explore the :h docs can be huge for learning how to do things the vim way. Another really cool thing once you get going is learning that saying "there HAS to be better way to do this" often actually bears a better way to do something!
@diegoulloao
@diegoulloao 7 ай бұрын
now you can remove the custom nvim-tree arrows and you will get normal arrows both same size
@s8r4
@s8r4 Ай бұрын
Wow, at the very end you introduced me to a command pattern that I've been missing all this time, di. Reading through the text-objects documentation made me realize just how convenient this command is. Delete the word you're currently on, regardless where in the word? diw, Delete the current paragraph? dip, the list just goes on and I simply wanted to thank you for this revelation in my vim journey!
@ur.kr.2814
@ur.kr.2814 7 ай бұрын
Tried it. Have to use angular though and the support for the templates is too much worse than VS Code.
@froreyfire
@froreyfire 7 ай бұрын
"A natural tendency to go back to what you're comfortable with." Very true. Always going back to Emacs.
@thomassilvestre7545
@thomassilvestre7545 7 ай бұрын
I learned vi (not even vim yet!) the hard way: on an aix terminal with ksh. Just imagine, you open a terminal and the command line behaves like a vi editor, yep hit ESC then k or j to move into your command history. No kidding, you learn basic movements very quickly 😅
@Boxing_Gamer
@Boxing_Gamer 4 ай бұрын
That sounds like so much fun, reminds me of my Commodore 64 days!
@achimwinter8054
@achimwinter8054 8 ай бұрын
I am mostly okay with my neovim config, however i still couldn‘t geht the debugger to work for frontend stuff. Does somebody got that to work with wsl2, project is located in wsl2 and chrome obviously in windows. I guess i would have to add some port mapping?
@KadenCartwright
@KadenCartwright 7 ай бұрын
WSL2 automatically forwards ports with listeners attached inside the Linux environment so they can be accessed on your windows localhost
@user-bm3so1qx7h
@user-bm3so1qx7h 5 ай бұрын
Hi Josh! How did you get the inline template and styles syntax highlighting?
@JoshuaMorony
@JoshuaMorony 5 ай бұрын
Hey this is just from having the Angular Language Service installed (you can see my lsp config here: github.com/joshuamorony/nvim/blob/9d3a53455a8d938e24c9341a7ca0d9dad6bf4424/after/plugin/lsp.lua#L10)
@kaidzz
@kaidzz 7 ай бұрын
depends on your technology, mine is salesforce so all my codes,js,htmls,salesforce configs etc needs the extension in vscode
@gcasanas1
@gcasanas1 7 ай бұрын
LSP for typescript is not quite there just yet. When I try to do a workspace symbol search in Neovim it is very slow compare to vscode. I thought that the typescript/javascript lsp was the same... I could be wrong but the speed is quite different.
@Boxing_Gamer
@Boxing_Gamer 7 ай бұрын
I think the problem is vim is single threaded so it can lag when waiting for LSP response.
@bestieboots
@bestieboots 4 ай бұрын
​​@@Boxing_Gamer incorrect. It is not single threaded.
@TheBest-sd2qf
@TheBest-sd2qf 4 ай бұрын
​@@bestiebootsfrom what I can read it uses an event loop..similar to node js.
@enderger5308
@enderger5308 2 ай бұрын
A few tips from a long time Neovim user: 1. Lua is significantly better than Vimscript for writing your configs. It’s a lot less idiosyncratic. 2. While configuration frameworks are nice, rolling your own config will often create something much lighter. 3. Don’t overdo the plugins. Since my recent move to using Neovim for text edits and Emacs for full IDE features (yes, I’m an editor holy war heretic on both sides), I’ve found the startup on both editors significantly better (even if they look closer to stock and don’t have tabs, I can use :b for that).
@SuperQuwertz
@SuperQuwertz 8 ай бұрын
Whats the link to the blog series about Neovim you showed?
@JoshuaMorony
@JoshuaMorony 8 ай бұрын
I just added a link to the description
@user-ti2ju9of6h
@user-ti2ju9of6h 11 күн бұрын
The bad thing its behind a paywall
@andrewlee7574
@andrewlee7574 6 ай бұрын
What’s font you are using? It looks great~
@JoshuaMorony
@JoshuaMorony 6 ай бұрын
I'm using MesloLGS NF
@Falah_056
@Falah_056 Ай бұрын
I switch to neovim start from nvchad 2 months ago then last week i switch to lazyvim im lovin it when i try use vscode again i feel slow and sluggish
@ash1kh
@ash1kh 7 ай бұрын
Just one thing. Can you use phind with neovim. Btw it's a search engine for coders and sort of explainer assist. If yes I will immediately shift. Otherwise no thanks, I am way faster with vscode.
@user-lp1be4jl8c
@user-lp1be4jl8c 3 ай бұрын
Is phind just chatgpt repackaged?
@bestieboots
@bestieboots 4 ай бұрын
I've tried to switch to vscode from vim every couple of years since it came out, sort of like a "grass is greener and I'm sick of debugging my config", but the whole thing feels inside out to how I use and think Linux. It has nothing to do with the mouse, ergonomics, or keyboard bindings, it's more fundamental than that. I don't think I'd recommend vim to anyone (though I'll defend it), because I'd wager the processes and mental model it is best at supporting is dying out. I drank the Unix philosophy flavour aid over two decades ago and I'm not going back, as much as I kind of feel like a dinosaur.
@g-luu
@g-luu 8 ай бұрын
oh man i hope it’s not too painful for a webstorm user.
@pazzuto
@pazzuto 8 ай бұрын
I would never leave Webstorm. Not just the editor, but the assist it provides is unmatched - true for any JetBrain editors.
@peanutcelery
@peanutcelery 8 ай бұрын
Yes it is very painful lol, but I do like for a quick terminal edit instead of loading up webstorm for a single page. I use webstorm for full development but neovim for a quick in and out file edit
@ImperiumLibertas
@ImperiumLibertas 7 ай бұрын
Use learn vim motions. That's 80% of the pain. After that you can tweak your config to be exactly how you like them. Vims LSP and code action support is amazing. Snippets are available for any language you'd ever want. Neovim is the best editor because it is the most configurable editor. If you're that locked into one text editor you should ask yourself how much reliance are you putting on that tool to be productive? Are you locking yourself into an ecosystem that is difficult to escape? Is it going to make it difficult to adapt to new technologies in the future? With neovim you don't have to worry about it because it's all based upon plugins where with webstorm or any other none text editor IDE you're locking yourself into one specific workflow.
@adrian_franczak
@adrian_franczak 7 ай бұрын
Ideavim?
@Gordolone
@Gordolone 7 ай бұрын
@@adrian_franczak ideavim is just amazing… being able to combine vim motions and remapping even IntelliJ commands is priceless.
@im7254
@im7254 7 ай бұрын
what is a terminal?
@vicca4671
@vicca4671 7 ай бұрын
I've switched to nvim almost permanently for 2 months already, my only current struggle is that I still couldn't get a CSS/SASS LSP running, and CSS without suggestions and auto-completion is beyond awful. Edit: nevermind, I just managed to get one running nice and good, thanks Mason. I can finally never again open VSCode
@KadenCartwright
@KadenCartwright 7 ай бұрын
Such a good feeling when you can finally ditch vscode! 🙌 I did the same about a year ago, and it just keeps getting more fun as I figure out new ways to optimize my workflow
@vicca4671
@vicca4671 7 ай бұрын
@@KadenCartwright tbh I settled well with a "neovim distro" because I wanted to have a more familiar interface, since I couldn't really slow down my tasks while switching to nvim. Astro was the one that fit me the best, but I'll eventually try my hand at configuring a setup with absolutely only the stuff I need.
@sutirk
@sutirk 4 ай бұрын
Mason is incredible
@encapsule2220
@encapsule2220 7 ай бұрын
Tried it for a week. Love vim motions, other than that setting up all the plug ins, tryna make everything work made me wanna puke. I realized i like vscode, theres so many great features out of the box, but i think vim motions is def worth learning
@LEGnewTube
@LEGnewTube 7 ай бұрын
Can you debug in neovim I’m and step through the code like you can in VS Code? That’s a big deal for me.
@PamellaCardoso-pp5tr
@PamellaCardoso-pp5tr 3 ай бұрын
Yes you can. And even more using treesitter. It's Just a matter on how much you experiment with the functionalities to find the Crazy amount of shit you can do with It that vscode can't even dream about.
@markopoutiainen7108
@markopoutiainen7108 4 ай бұрын
I used Vim (not NeoVim) for several years but now I have used VS Code + the Vim extensions for a few years. Why? Debugging. There just isn't anything approaching a decent experience available to Vim. I had to kick up gdb every time I needed to debug something (the plugins never worked well enough to integrate this in Vim) and using the CLI gdb is not exactly my idea of fun. Yes, you find the bugs with it as well but just doing simple stuff like setting a breakpoint is tedious. But I have to try VSCode Neovim. I have also recently switched from Vim to NeoVim for my other editing needs so it would make sense to use the same settings.
@victortesla2935
@victortesla2935 7 ай бұрын
I just wanted to use a light wait editor that looks good
@stuvius
@stuvius 2 ай бұрын
2:06 was this a subtle critique of the annoying pop ups in VSCode? 😁
@LarsRyeJeppesen
@LarsRyeJeppesen 7 ай бұрын
I use the new Google Cloud editor. Amazing
@japadkman
@japadkman 3 ай бұрын
I decided to use neovim because I didnt like vscode, theres something about it that I just don't vibe with and it feels sort of heavy. Also because on my new role at the time I would be needing to ssh into several linux machines that only had vim installed as an editor instead of nano and I couldn't afford to be slow while altering configs on those servers. I went with a neovim distro called LunarVIM since the setup seemed easy. I kept vscode and lunarvim open on the same project side by side and I would work on lunarvim when I had time, and then on vscode when I needed to be faster, eventualy I stopped used vscode. When I have time I'll make my own config but lunarvim has been fine and easy to use.
@AleMilos
@AleMilos 7 ай бұрын
I still don't get why I should swtich. VsCode + Vim seems a really good option but going further doesn't give me the same feeling. Can anybody change my mind??
@kamikamen_official
@kamikamen_official 3 ай бұрын
No, just do whatever you want to do. If you don't see worth in doing it, and can already use the bindings comfortably then you're good. Beyond that is just philosophy and being able to say you built your IDE. For some people, me, that's enough to do it, if not don't. Ps: if you're asking to be convinced that means you might already be the type of person that wants that, but just don't want to go through the hassle. Just do what he said build your vim on the side (or use stuff like LazyVim) and then see if it's for you.
@fuzzy-02
@fuzzy-02 6 ай бұрын
Im switching because on my old laptop it cant handle the bloated vs code. (Switched to linux too, very fun) On my desktop im remaining windows and cs vode until I feel like moving
@zakhargreaves4379
@zakhargreaves4379 7 ай бұрын
Link to your dot files?
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
github.com/joshuamorony/nvim
@andreistein2429
@andreistein2429 8 ай бұрын
Intellij🤘
@cloudy088
@cloudy088 7 ай бұрын
Hello, Please, can you provide me a theme you were using for 4:07
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
That is a screenshot from VS Code and is just the default VS Code theme
@cloudy088
@cloudy088 7 ай бұрын
thank you @@JoshuaMorony
@Sameer.Trivedi
@Sameer.Trivedi 7 ай бұрын
I am forcing myself to use Neovim, I threw my old keyboard and bought a 60% keyboard with no arrow keys spent 3 days customizing it into an IDE, even bought a course to learn it 100%. I absolutely suck at it right now but I am improving slowly.
@KadenCartwright
@KadenCartwright 7 ай бұрын
Don’t get discouraged, it’s super worth the effort!
@nullptr.
@nullptr. 4 ай бұрын
Buying a course sounds silly to me, there's a lot of material online for free. Should've donated to the maintainers instead.
@Sameer.Trivedi
@Sameer.Trivedi 4 ай бұрын
@@nullptr. It was like 5$ on udemy, it was pretty darn good, they guy focused more on stock vim, motions and keybindings and not the usual plugin this, distro that. I have had ass luck with finding good documentation or free videos for that matter, I think that the search time is better spent actually practicing.
@cloudy088
@cloudy088 7 ай бұрын
I feel sorry to bother you again, which fonts are you using? Thank you.
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
All good! I'm using MesloLGS NF
@ohwow2074
@ohwow2074 3 ай бұрын
I use Sublime Text a lot. VS Code is too slow for me. And neovim is hard to get started. I guess I won't bother anytime soon.
@insecuree3598
@insecuree3598 8 ай бұрын
There is no way i would switch from JetBrains to this. Even though i like vim motions, though it is hard to avoid conficts between vim bindings and IDE bindings if you use Vim plugin.
@GOTHICforLIFE1
@GOTHICforLIFE1 7 ай бұрын
Well you didn't pass step 1 then ;P Not for you
@Boxing_Gamer
@Boxing_Gamer 4 ай бұрын
If jet brains bothered to get their search and navigation features right, instead of focusing on supporting the newest javascript framework, I might give them a chance.
@edupazz
@edupazz 4 ай бұрын
​@@Boxing_Gamer may you elaborate? I'm learning the searching capabilities of intellij right now and it seems ok to me
@Twoty
@Twoty 7 ай бұрын
Hi man, How do I compile/build in neovim without doing it manually (setting up cmake for example, im fine with terminal stuff)??? Im in pain whenever I need to do c++ stuff
@matthewghere7765
@matthewghere7765 4 ай бұрын
The whole point is to do it yourself, my dood
@oszi7058
@oszi7058 7 ай бұрын
the thing is its easy to waste hours upon hours on config, it doesn't matter what, nginx, vps, video game mods or neovim, for that reason i ll probably go with interllij ultimate the next time vscode pisses me off
@randall.chamberlain
@randall.chamberlain 7 ай бұрын
Shame that the blogspot shared in the video description is a Medium blog. Annoying Subscribe/Pay wall
@LeungWong
@LeungWong 8 ай бұрын
In my case I switched over to nvim because vscode suddenly one day decided to become extremely slow.
@dotRarufu
@dotRarufu 8 ай бұрын
same case
@sudeep.gurung
@sudeep.gurung 7 ай бұрын
So you just switched ? Just like that ?
@omarmahmoud1586
@omarmahmoud1586 4 ай бұрын
how much time did you take to fully switch to neovim?
@JoshuaMorony
@JoshuaMorony 4 ай бұрын
I don't remember exactly - I had toyed with it from time to time so I wasn't completely fresh when trying to switch, but once I made a dedicated effort to make the switch I think it was probably around maybe 2 weeks until I was able to use neovim for all my work
@jojo-nh3yj
@jojo-nh3yj 5 ай бұрын
How to adjust the page numbers to look like in this video (1:38) i am using the Neovim extension but i don't have these
@edupazz
@edupazz 4 ай бұрын
If you haven't discovered til now, it's called relative line number. I don't know exactly the command to set it on, you may google it
@OnStageLighting
@OnStageLighting 2 ай бұрын
Did you mean :set relativenumber ?
@ShiloBuff
@ShiloBuff 4 ай бұрын
Serious question: Is Neovim really an advantage when you can use "Vim Modes" and keybinding plugins for a more modern and visual IDE? For instance VSCode has vim macros plugins. But I imagine other IDEs like Jetbrains also includes that. I still have yet to switch to Vim or Vim macros, but I don't see myself ever enjoying Vim IDE itself, only the shortcuts.
@JoshuaMorony
@JoshuaMorony 4 ай бұрын
Depends what you want, but for me the other big reason I like using neovim is specifically that it is terminal based and with tmux/zoxide allows for a workflow like I show in this section of my other video: kzbin.info/www/bejne/hma0gZSZr5dgl9Esi=baIXEG-f0VQJ-rfK&t=155 - it's not uncommon for me to have 6+ different projects to switch between, and with this set up I can bring anything I need up almost instantaneously (and of course the memory usage is better than having 6+ instances of VSCode running) Generally I just like having as much in the terminal as I can as I find improves my workflow (not just purely for speed reasons, it also feels less frustrating to me)
@arnabbanik6403
@arnabbanik6403 3 ай бұрын
are you using Fira Code?
@robosergTV
@robosergTV 18 күн бұрын
does neovim has a co-pilot chat? If not = useless
@lucasteo5015
@lucasteo5015 7 ай бұрын
I use vim emulator in both vscode and intellij for my job, roughly 10 months since I last switch to use it. The only problem I have now is just the combo, such as what you mentioned di{ which is not very obvious most of the time, I always find myself doing everything in visual mode before doing any action (as when I was a noob I wasn't sure that my combo will be doing what I want to do, I prefer visualize it then do it), but now I got used to it which is not as efficient as executing the action directly and I guess it is about time to learn new combos to make it faster.
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
These things clicked for me more when I would think of them as what they actually are rather than some obscure looking shortcut, e.g. in my head I would say "delete-in-curly brace" which is "di{" or "delete-around-curly brace" da{, "delete-in-tag", "delete-around-paragraph", "delete-in-word" and so on
@vladanisov1689
@vladanisov1689 7 ай бұрын
This is really helpful, thanks!@@JoshuaMorony
@gustavojoaquin_arch
@gustavojoaquin_arch 7 ай бұрын
Zzzzz Imagine use vscodzzzzzz or intelizzzzz I use neovim btw
@nahidahmed9153
@nahidahmed9153 5 ай бұрын
​@@gustavojoaquin_archimagine using neovim😂
@gustavojoaquin_arch
@gustavojoaquin_arch 5 ай бұрын
@@nahidahmed9153 YES 🗿 I'm not a 🏳️‍🌈 ((()))))
@peanutcelery
@peanutcelery 8 ай бұрын
I wouldn’t recommend using a custom setup. It took me forever to learn vim because of that. I would just use a neovim distro and install any additional plugins. I have LazyVim as my distro and is pre-configured for JavaScript format. Then MasonInstall typescript lsp server and angular server, and TSInstall those too.
@juniorsundar
@juniorsundar 4 ай бұрын
I disagree. LazyVim takes you to a point where you don’t really have to think about that you’re doing. It’s kind of like installing vscode and having it run out of the box. Might as well just stick with vscode. My suggestion is to mess around with your own config (building and managing one from scratch) for like a month for some hobby project. Learn how package management and lsp management works. Learn to fix problems when neovim breaks. This is important because you know how to fix something that you built and broke that her than trying to fix something someone else built. After you get some proficiency in debugging your own Neovim set up, switch to LazyVim and try to bring it to a point where it is comfortable for you.
@StephenMoreira
@StephenMoreira 8 ай бұрын
Currently on the learning part of my NeoVim Journey. My intention is to really stick with VSCode and learn vim motions. VSCode is still very much king I feel like when working with a team you being the odd one out using full neovim while everyone else is using VSCode is an area of friction.
@JoshuaMorony
@JoshuaMorony 8 ай бұрын
To be fair I haven't worked in a team environment for a long time, what sort of frictions do you think you would run into though?
@StephenMoreira
@StephenMoreira 8 ай бұрын
​@@JoshuaMorony Same I am currently a solo developer at my organization, been in this role for the past 10 months. However, in my experience I went from everyone using their own diff editor to everyone using VSCode was really nice since we all discovered little quality of life features in the editor and shared with each other. When we would pair program for a bit or walk over and help another developer it was much easier to help each other when we were all familiar with the editor.
@MrFischi123
@MrFischi123 8 ай бұрын
​@@JoshuaMorony You and your colleagues can learn from eachother more easily if you both use the same tools. Also, devcontainers and extensions for VSCode are super useful for setting up development environments for multiple team-members. But you can probably setup similiar arrangements with NeoVIM or any other IDE. A real world example, where sharing debugging know-how is made simpler by knowing my colleague is using VSCode. 1) Open it as a workspace 2) Run "Reopen in devcontainer" 3) Wait for the debug extension to load 4) Click the run button that appears above your test function I really like your suggestion for using the Vim-Extension. It's probably the sweet spot for most.
@peanutcelery
@peanutcelery 8 ай бұрын
@@JoshuaMoronyI use Webstorm with vim commands and can never go back. Is nice not reaching for your mouse.
@bestieboots
@bestieboots 4 ай бұрын
I have not found this to be an issue, despite more and more people adopting IDEs over the years. It's getting rarer to find co-workers using it or emacs, but never caused a problem. I guess lately it's started to be seen as a hipster editor, so maybe there's some reactionary stuff I haven't dealt with yet?
@kaas99
@kaas99 7 ай бұрын
I tried Neovim and liked it but, didn't like the config part. That's not reliable and I am not passionate enough to fix those lua configs every other week or so.
@p99chan99
@p99chan99 4 ай бұрын
I switched to Emacs, pretty fun
@oredaze
@oredaze 3 ай бұрын
The real trick to doing hard things is that they need to be fun for you. I was a hard vim user before I even though about programming. Because when I first saw it, I thought this is the coolest thing ever, it must be what the real hackers are using.
@Edwinil
@Edwinil 8 ай бұрын
Yo lo he intentado 3 veces y he fracasado lamentablemente
@mage3690
@mage3690 7 ай бұрын
The real reason you switch to Neovim is because you started in Vim, and the only reason you started in Vim is because you ssh into a server every day. Why would you switch from VSCode to Neovim? No idea. Maybe it's faster. Maybe you want to program in Bash (that's a real headscratcher. Don't do Bash, kids).
@joshuatye1027
@joshuatye1027 8 ай бұрын
If you switch to neovim trying to replicate vscode you are going to have a difficult time. Vim buffers are not like vscode tabs. VScode tabs are not like vim tabs.
@KadenCartwright
@KadenCartwright 7 ай бұрын
This is not true like at all though? Buffers in vim/nvim are almost exactly the same as tabs in vscode aside from the native way to view them is not a typical browser like tab system in vim/neovim. But this is just a UI layer thing, there are plugins that can provide that for you if you really want it
@oliverfoxi
@oliverfoxi Ай бұрын
Use distros to land to nvim more easily
@ravenecho2410
@ravenecho2410 4 ай бұрын
Based
@vikingthedude
@vikingthedude 7 ай бұрын
My favourite are ciw ci’
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
I need to force using change into my brain - my muscle memory is stuck on delete -> insert (e.g. diwi instead of ciw) - not a big deal I guess!
@o_glethorpe
@o_glethorpe 8 ай бұрын
Neovim is good, until I want to debug something, I just cant get that stuff to work man.
@JoshuaMorony
@JoshuaMorony 8 ай бұрын
You talking like LSP diagnostics stuff for your projects, or like trying to fix things when Neovim just decides that today is a good day to break completely?
@o_glethorpe
@o_glethorpe 8 ай бұрын
@@JoshuaMorony LSP works fine, its really the debug. Like, step in, step out, breakpoints, etc... I cant get DAP to work, and since I work with angular, dotnet and flutter, it seems I need to solve this 3 times. :(
@JoshuaMorony
@JoshuaMorony 8 ай бұрын
@@o_glethorpe ah I'm just a console logger so I've never really run into this - it has to be a pretty bad day for me to bring our the proper debugging tools, and even then I just use the browser tools
@ChauTran
@ChauTran 8 ай бұрын
I definitely have stockholm syndrome for this but I come to term with Using the right tool for the right job. When I need to debug, I just: open float terminal -> webstorm . 😅
@joshuatye1027
@joshuatye1027 8 ай бұрын
You don't have to only use one editor. I code in neovim, debug in vscode.
@ZeIsAnEnemy
@ZeIsAnEnemy 4 ай бұрын
Is there any real solution for helm templates? It's annoying to suppress yaml because helm templates aren't yaml and you see a bunch of red notifications on each single line.
@kevinclark1783
@kevinclark1783 7 ай бұрын
But why?
@Verrisin
@Verrisin 4 ай бұрын
alternative: move from VS Code to ... stay with me .... VS Codium. Yep. Not such a bad idea imo. :D
@Verrisin
@Verrisin 4 ай бұрын
and yes, I've used vim a lot. VSC has Vim extension. A lot of the extensions are not well set up keybind wise imo, but then again, it's barely worse than in vim itself ...
@js-ny2ru
@js-ny2ru 3 ай бұрын
I would use nvim if it wasn't so hard to set it up on Windows...
@alexandertorres8854
@alexandertorres8854 8 ай бұрын
Sorry Josh....I can't follow you down this path....lol
@anj000
@anj000 7 ай бұрын
I know this is not the video about "why", but man... it really seems like a bunch of dudes living a life of a teenage girl that "is not like other girls", and just trying to wear very uncomfortable shoes to feel special or superior to others. Some people are just giving in to a peer pressure from people that seem more experienced, because otherwise they will feel like they are not "real programmers".
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
I get that it can seem like that, and certainly there is some kind of "elite" factor around vim (e.g. the memed attitude around "I use neovim btw"). Maybe that is some people's motivation - I think it's a mistake to assume this is all just pointless elitism though - there is value here, and whether it is worth it or not is going to come down to preference. If I had to sum up my key reasons for preferring neovim, it's that I have a super lightweight coding environment that I can instantly pop up (I just hit Ctrl + J and I instantly get my terminal full screen) - I can very quickly jump between different projects without having to have say 4 different instances of my IDE open, I find coding with vim bindings and my own personal keymaps to be far more quick/satisfying/ergonomic, I can use all of my editors features/gizmos completely through the keyboard without ever having to touch the mouse, and I have a high degree of control over tailoring the editor to my own workflow. But, there is also this secondary benefit I think where because neovim forces you deeper into this configuration sort of environment (a downside), this same thing also leads to increased skills with languages and tools I wouldn't otherwise be using (i.e. lua and things like sed/grep)
@anj000
@anj000 7 ай бұрын
@@JoshuaMorony I understand that it might feel satisfying/ergonomic/quick, but it reminds me of a meme "programmers will spend 20 hours writing a script and automating something that they could do manually in 2 hours". There is this drive in many people's brains to automate and optimise things, I get that, but it is hard for me to justify this professionally when my time is limited. How much of your work is actually writing code? I spend much more time talking to people about what we want to build, reading docs and thinking, than actually typing the code. It is not a bottleneck for me. And for example the time it will take me to select the whole function and delete it is irrelevant. I also don't see a problem with my IDE not being lightweight. I don't remember when it was the last time I noticed my editor being slow or not opening as fast as I would wish. Maybe when I was using full Visual Studio or some other garbage Codeblocks at university. It is very funny to me when some people say "I use IDE for normal projects and neovim to make quick single file edits". Why not just use a notepad in that case, instead of spending so much time learning neovim to just edit a config file. Anyway I will probably get vim motions in VS code "because I like to suffer". Great video and thanks for responding!
@JoshuaMorony
@JoshuaMorony 7 ай бұрын
​@@anj000 I write a lot of code but I also I don't think you have to be pushing out lots of code for it to be worth it. The initial investment in terms of time with vim/neovim is large, but once you get things set up and are comfortable there isn't much of an ongoing time investment. So, if you're going to be coding for probably decades to come, the initial investment become negligible if it is going to pay off for you in even little ways. That is an if though - if you don't see what vim/a terminal based editor offers as being beneficial to you then it makes sense not to bother with it. A big factor for me isn't so much that vim allows me to crank out code faster, it's more so that I feel less of a barrier between what I am thinking/trying to code and actually executing it. With VS Code I generally felt more disorganised and was sort of very conscious of trying to use a tool to make the code I want happen, with neovim it feels to me like there is less of a barrier between my thoughts and the execution and everything flows much more nicely. Maybe that sounds silly, but it's the best way I can think to explain it right now.
@anj000
@anj000 7 ай бұрын
​@@JoshuaMorony actually the explanation with the barrier between thoughts and the execution is really good. I personally don't experience so much struggle with the editor. But on the other hand maybe I just don't know the alternatives and I don't know how much better it could be. Thank you for your comments, didn't expect them to be honest :D
@This_Account
@This_Account 2 ай бұрын
Switching to vim is easy when $DISPLAY = Null Also I found my self primarily using the terminal in VSC anyway.
@edupazz
@edupazz 4 ай бұрын
I don't know, it just feels lame. I'm not even talking about VSCode. I even feel this way when comparing intellij and vscode. Intellij just magically works for most of the situations withouts plug-ins, and in vscode you have to dig plug-ins and configs to copy a fraction of Intellij's power. Then using neovim is this effort quadratic. Why does it have to be so complicated? Why can't I simply install some binary and feel it's all made to be like that? I still find super difficult to convince myself to abandon intellij for pure neovim/vim
@ultimathule9841
@ultimathule9841 15 күн бұрын
It’s fun until something breaks.. 😢
@kbishdev
@kbishdev Ай бұрын
Skip the extension...insert mode is flaky and frustrating.
@alveek
@alveek 7 ай бұрын
So I need to install million plugins to basically recreate VS Code in a terminal? No, thanks.
@Boxing_Gamer
@Boxing_Gamer 7 ай бұрын
You can customize vim alot more, especially when it comes to keyboard shortcuts. But if you're happy with your current setup there's no reason to switch.
@coneforest9308
@coneforest9308 7 ай бұрын
It's also much faster than VS Code
@LHCB6
@LHCB6 7 ай бұрын
Easier than getting VS Code to have the functionality of Vim. The extention only does so much.
@blablabla7796
@blablabla7796 7 ай бұрын
Vim is in a weird place where if you only ever need to do is write code, once you get proficient with it, you’ll wonder why the hell were you even bothering with with notepad style text editors. It feels like you’re actually walking compared to when you were crawling with the conventional editor. The problem with vim is that it’s extremely pathetic without addons for any modern software development. Sure you’re editing code faster than any normie, but those normies have autocomplete, multiple tabs and windows, in-line debugging, mouse over code definition peeking. You’ll feel like you’re walking, but the normies are on a sled, you’re walking barefoot and your feet hurt. The obvious next step is to start supplementing vim with plugins. Once you do that, you’re not only not crawling, but you’re basically running now. If you ever consider trying out vim, I suggest you go straight to lazy nvim. You don’t need to configure anything besides installing an LSP for your programming language of choice. I use everything default and it’s already way better than vscode in my experience.
@blablabla7796
@blablabla7796 7 ай бұрын
Besides, VSCode is pretty crap without plugins either. Once you have added all the plugins you need, it’s no longer as fast as it used to be outside of the box.
@ilyeshammadi7278
@ilyeshammadi7278 2 ай бұрын
Switching to neo(vim) means you can finally call your self Software Engineer and not Software Developer anymore.
@raident29
@raident29 7 ай бұрын
why make neovim like vscode when you can just use vscode and spend more time doing projects....
@codingjerk
@codingjerk Ай бұрын
It's like sharpen an axe, good in long term
@atrowell
@atrowell 22 күн бұрын
I think you have a good question. My answer is that I need to control many computers at the same time, and I can do that through a terminal. However I missed some of the nice features of vs code. This lets me have my cake and eat it too. For me though, since I need to operate multiple machines, set up on each machine has to be quick and painless.
@ultimathule9841
@ultimathule9841 15 күн бұрын
True, that’s why I switch back after trying it 😂
@srijanraghavula
@srijanraghavula 13 сағат бұрын
Valid one. Because you get to understand more stuff not just the things you know but you get to mess around with your computer and you learn so much stuff. Don't ask me how, I messed with OS for a few years distro hopping while I could just stick to one but I learnt so much that I don't panic when an error pops up and I'm more comfortable with making mistakes and being fluid smooth with my computer and I know a lot more that indirectly contributes to my work
@RemizZ
@RemizZ 4 ай бұрын
Honestly, I don't need another reason people can give me even more work because I'm done faster lol
@johnp.johnson1541
@johnp.johnson1541 4 ай бұрын
"You're going to code much more slowly for awhile." *Real coding always is slow. * Fast typing isn't real coding. Autocompletion is not real coding. Cutting and pasting others' work is not real coding. Real coding starts with a data transformation flow scheme. Next comes the p-code description of what each transformer stage does. Then comes the coding / parallel refactoring stage.
@user-fr2fm3ri3w
@user-fr2fm3ri3w 3 ай бұрын
You sound like you like Java 🥶
@fsharplove
@fsharplove Ай бұрын
@@user-fr2fm3ri3w I agree 100% with everything he says except the last part. Usually you start coding before having a clear picture. Picture will be clearer during the process. He seems to be a very organize person, liking Java as to do with liking verbosity not organization, lol.
@Nitiiii11
@Nitiiii11 5 ай бұрын
I've made the switch to Neovim and I'll probably never go back. If you call yourself a professional, you should use the best tools available, which means you should at the very least consider Neovim and Emacs.
@GelidGeorge
@GelidGeorge 7 ай бұрын
What is the need to go back in time, and put oneself in misery ... 😂😂
@4_millimeter_defeater358
@4_millimeter_defeater358 5 ай бұрын
Unemployed/Students. Nobody else embarking on this journey
@edupazz
@edupazz 4 ай бұрын
I feel likely to agree. Before getting my job I was super into Linux and dot files config stuff. Today I just want to seat, get my brain force explored by the company and never see the computer again til next day.
@joaquieroux
@joaquieroux 7 ай бұрын
vim is too slow and cumbersome to install/update extensions and troubleshoot for it be useful.
@alexandrodisla6285
@alexandrodisla6285 7 ай бұрын
Well you are not going to like it.
@tyviz
@tyviz 4 ай бұрын
How use neovim when i dont have a qwerty layout? Thats says much about it. I tried remapping all keyboard but its fucked up. Useless vim like old shit
@gustavojoaquin_arch
@gustavojoaquin_arch 20 күн бұрын
Based 🗿
@deha9210
@deha9210 24 күн бұрын
you should stop after step 2
Do you like a chocolate surprise egg?🥚🍫🥰 #demariki
00:32
АВДА КЕДАВРАААААА😂
00:11
Romanov BY
Рет қаралды 10 МЛН
【獨生子的日常】让小奶猫也体验一把鬼打墙#小奶喵 #铲屎官的乐趣
00:12
“獨生子的日常”YouTube官方頻道
Рет қаралды 83 МЛН
Do you like a chocolate surprise egg?🥚🍫🥰 #demariki
00:32