Why I Cant Stand IDE's After Using VIM | Prime Reacts

  Переглядів 235,601

ThePrimeTime

ThePrimeTime

5 місяців тому

Recorded live on twitch, GET IN
/ theprimeagen
Reviewed video: • Why I Can't Stand IDEs...
By: Nir Lichtman | / @nirlichtman
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-Kinesis
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/deeznuts

КОМЕНТАРІ: 771
@khatdubell
@khatdubell 5 місяців тому
All of his arguments boil down to "I was too lazy to learn shortcuts in the IDE, but i forced myself to learn the same shortcuts in VIM, therefore VIM is better"
@insydian
@insydian 5 місяців тому
Vim is language agnostic. Shortcuts in ides are very ide specific
@khatdubell
@khatdubell 5 місяців тому
@@insydian ignoring the fact that you can reassign the shortcut and they are usually managed with simple text files, and also ignoring that, at least in my experience, people usually aren’t switching rapidly from language to language in their daily workflow for the moment. that argument doesn’t really apply to the two leading IDEs, IntelliJ and vscode
@JoyEnergiser
@JoyEnergiser 5 місяців тому
Pretty much sums it up,trying to be elitist at all costs
@aziz9488
@aziz9488 5 місяців тому
They are brainwashed elitists, most of these people are average programmers trying to flex with a text editor 😂.
@Luclecool123
@Luclecool123 5 місяців тому
Shortcuts are trash, modes are much better
@Rohinthas
@Rohinthas 5 місяців тому
Not dissing Vim, it seems powerful as fuck and most importantly light-weight, but in terms of navigation most modern IDEs can do what was shown in this video and people are just too lazy to actually set and/or learn the shortcuts. Same reason they dont start using Vim. I use Webstorm daily for work, because we are TS-only: Fuzzysearch files: double-shift Go to last file selected: ctrl+tab --> hold tab and hit tab to go further back the files you last visited Got to line: ctrl+l Go to matching brace (in my case): ctrl+shift+m While on a brace select its content: ctrl+(2*w) Select word: ctrl+w --> Hold ctrl and progressively select more elements connected to the word in syntactic priority by repeatedly pressing w Select line: ctrl+c Replace by regex: just like regular replace (ctrl+r) but activate regex once Duplicate line/selected block: ctrl+d Or delete with ctrl+shift+d Find next instance of x: ctrl+f Hit Enter to move forward, shift+enter to go back Esc to stop search. And manymanymany more, seriously the keymap is huuuge! Oh and properly use home/end, pg-up/pg-down, and Esc, and set the shortcuts for entering the integrated terminal. I'm sure all of this can be set in VSCode too. The only thing Vim really does better in this regard is sticking to the homerow principle and that is honestly the only reason why I consider learning it. The speed of my IDE has never bothered me.
@ivanjelenic5627
@ivanjelenic5627 5 місяців тому
Yup, I use PHPStorm, and I have those, with some modifications. I also have many more set that I use religiously. I just noticed how much I rely on them when I was helping new colleagues that didn't have my key bindings - I kept hitting them and nothing happened or something else happened. It felt like a limb was missing, it felt so slow and powerless coding like that. In no particular order: Ctrl+Shift+up/down to move the line(s) up and down a line (useful for switching order of lines). Ctrl(+shift)+left/right/up/down/end/home go(+select to) next word/camel case boundary, line start/end Ctrl+backspace/del - delete to next boundary left/right Ctrl+shift+backspace/del - delete to next camel case boundary left/right Ctrl+shift+f or r search/replace in all files Ctrl + - and Ctrl + +, or the prev/next buttons on the mouse -> move caret in history back and forward, even across files Ctrl+e toggle quotes/doublequotes Ctrl+q toggle comment lines Ctrl+click on something - goes to its definition Ctrl + right click on something - goes to where it's used or if there's more than one place, then it goes to a list of places where it's used so I can pick one (up/down to move through list) Ctrl+~/tilde - rename(+refactor) everywhere - renames variable/function/etc everywhere (can even rename in comments if wanted), also renames files/namespaces/use statements if it's a class, etc. Some hotkey I forgot for Zen mode where it hides everything (like menus/sidebars/etc.) except the text. I think it's Ctrl+F5. Ctrl+1 toggle show/hide file tree, Ctrl+2 toggle open/go to last terminal, Ctrl+3 toggle commit sidebar, Ctrl+4 toggle sidebar menus, Ctrl+5 toggle git log/branches/remotes tree Ctrl+w close tab/window Ctrl+shift+tab open last tab And some more that I can't remember right now. I also edited the interface of PHPStorm and removed more than half of the options in menus and right click context menus, so they're much shorter and cleaner now, and they contain only what I need. It's so much easier to use them like that now.
@Rohinthas
@Rohinthas 5 місяців тому
@@ivanjelenic5627haha, yeah, using someone elses IDE setup feels so strange! I really have to look into modifying the interface, thanks for the tip!
@drugoviic
@drugoviic 5 місяців тому
most of those are defaults in jetbrains ides @@Rohinthas
@StfuSiriusly
@StfuSiriusly 5 місяців тому
yeah webstorm is great, as are pretty much all jet brains IDEs.
@warpspeedscp
@warpspeedscp 5 місяців тому
As a compromise, I highly recommend the vim plugin. Its really nice to be able to use the modal tricks you get with vim within a full ide env like intellij et al
@jgndev
@jgndev 5 місяців тому
The language specific IDEs from JB are basically IntelliJ Ultimate with a streamlined UI and plugins for that language (except CLion and Rider). I think there is also a difference between the debuggers between CLion, Rider and IntelliJ. Webstorm is included in most of them. Neovim is great and I loved it, but real talk the JB IDEs are *very fast * to work in with hotkeys and Ideavim.
@scotthinton4610
@scotthinton4610 4 місяці тому
CLion is my go-to, and I work primarily in C & C++. Despite some weaknesses, it's an indispensable tool for me. I can't imagine trying to configure vim to achieve similar capabilities... I don't have time for that.
@SakariLehtonen369
@SakariLehtonen369 3 місяці тому
JetBrains IDEs just rock, they have really improved them during the past 3 or 4 years or so.
@SteenSchutt
@SteenSchutt 3 місяці тому
I agree, I don't find that vim is particularly faster than PHPStorm + Ideavim. Also I find PHP LSPs kind of lackluster compared to PS's intents. I use Alt + Enter all the time to do things like invert and split if statements, search for the correct imports and updating deprecated constructs to the new implementation (an example is strpos() === false which can be changed to str_contains()). I like and use vim a lot, but there are so many things I end up missing for PHP specifically.
@AlexanderBuggeStage
@AlexanderBuggeStage 3 місяці тому
Agreed, I use nvim for absolutely except php plugins/extensions, there the PHPStorm is godsent. The fact you can load classes from outside the plugin folder, and not even from a live install or docker instance is so convenient. You can make the hints also straddle a range of PHP versions, which is amazing when updating embedded code to be php 8.2 compatible without breaking 7.3. JetBrains knows how to make an LSP and static analysis and Ideavim is pretty good too. If they ever made a sub just for their LSP's which I could pipe into vim, they have my money for life.
@knm080xg12r6j991jhgt
@knm080xg12r6j991jhgt 3 місяці тому
The big thing for me is all the refactoring and structural search and replace capabilities in JetBrains stuff. Being able to refactor 17 files with a new interface in Java, for example, is only a few keystrokes.
@ivanjermakov
@ivanjermakov 5 місяців тому
For navigating old places I love and to jump to next/prev cursor position and gv gi to select/visual spans.
@user-oc3kc7kt9l
@user-oc3kc7kt9l 5 місяців тому
Ctrl+p and ctrl+r are a standard in most editors/ide-s for years now. As well as many other shortcuts that do almost all that you two said. I get it why you two are so excited about vim, but a bit of balance should be.
@Xe054
@Xe054 5 місяців тому
Great point. Ctrl + p allows you to navigate to any file without using your mouse, and you can map tab focus to any key in the settings.
@arnerademacker
@arnerademacker 5 місяців тому
It's almost as if having a single button command interpreter in an editor is a brilliant idea to accumulate any and all functionality under ;)
@heroe1486
@heroe1486 2 місяці тому
​@@Xe054 Ctrl + p is trash compares to the tons of fuzzy finding options in neo(vim) like Telescope fzf-vim fzf-lua leaderf and so on. It's like a bicycle vs a car
@Sammysapphira
@Sammysapphira Місяць тому
​@heroe1486 congrats you saved 0.12 seconds. You've saved the entire project deadline with that speed efficiency.
@vuongnh0607l
@vuongnh0607l Місяць тому
​@@heroe1486what are the options, what make them better?
@peetythefly1
@peetythefly1 3 місяці тому
The first of your videos that I've stumbled upon. Very cool stuff and it's great to see someone as passionate about efficient keystrokes as I am. It's like a drug : ) I'm already loving those vim jump shortcuts. Thanks a bunch.
@gardnmi
@gardnmi 5 місяців тому
You got 20 digits and you are only using 10 of them to code? Get on my level and learn to use your feet.
@FaZekiller-qe3uf
@FaZekiller-qe3uf 5 місяців тому
Don't you mean 21?
@Rakkoonn
@Rakkoonn 5 місяців тому
Foot pedals? Found the emacs user.
@clovisbroggio7639
@clovisbroggio7639 5 місяців тому
​@@FaZekiller-qe3ufthe 21th is actually only for men and I'm feminist so I don't use it
@kahnfatman
@kahnfatman 5 місяців тому
Frontal tail works at specific times only
@Xblow23
@Xblow23 5 місяців тому
@kahnfatman lust seeks rust
@thiagomiranda3
@thiagomiranda3 5 місяців тому
I mainly work with Java, and do some devops work too. For the infra and config stuff, I'm totally sold for vim. But for Java there is really no fucking way that Nvim can be nearly as good as IntelliJ. The amount of things you can do on IntelliJ is unmatched. The super intelligent auto complete, super easy refactoring and the best debugger of probably any language out there. There is really no way for nvim to win, no matter how much gigabytes of plugin you install on it. I can get that nvim can be the best ide for any other language that is not Java or Kotlin. But for these two, you got take the L man, its a lost battle
@antonkriachko9569
@antonkriachko9569 5 місяців тому
same for Scala
@celsopatiri2846
@celsopatiri2846 5 місяців тому
Agreed, IntelliJ is awesome! Though I'd say this is mostly due to Java having such fat dev environment. It is indeed challenging to work with without a proper IDE
@thiagomiranda3
@thiagomiranda3 5 місяців тому
@@anon_y_mousse haha I wish it was possible to write perfect code the first time. But I don't use debug only to fix bugs. I use it as a development tool too. I always run my code with a debug the first time to make sure it is doing what it should. Almost like a repl development that clojure devs use, but with a debugger, and even the evaluate code that intellij provides
@recarsion
@recarsion 5 місяців тому
Yeah when I was doing Java I simply couldn't use neovim. Especially since it was Java 8, and the neovim plugins for Java only work like above 14 or 17 something like that... plus yeah IntelliJ is a very good product. But the fact that you absolutely NEED it because otherwise you simply can't work with Java speaks enough about what a shitty language it is and why I never want to touch it again.
@banatibor83
@banatibor83 5 місяців тому
@@thiagomiranda3 I use tests for that :)
@PAULJOYPADAMADAN
@PAULJOYPADAMADAN 5 місяців тому
Over last couple of months I have incorporated tabs (:vsplit and mostly just two) to my frontend vim workflow. It's really useful to make changes to HTML and CSS. The trick here is I use to swich between the splits and trigger the actual :vsplit using ''.
@duyanhdo123
@duyanhdo123 5 місяців тому
In vscode you can so "Ctrl + p", and type the name of the file in the current workspace that you want to open, then press Enter to open. You dont need to use the file tree or your mouse. 🤷‍♂️
@wolfeygamedev1688
@wolfeygamedev1688 5 місяців тому
Yeah i even went as far as to bind it to shift shift bc i find it even easier to use, as well as ctrl ctrl for opening command palette, which i far prefer over the approach the bloated IDE’s take with a billion buttons and menus. Also having the extension commands work through the command palette is also a major W. I also mapped alt alt to symbol search. Whats also cool with the drop down dialog is it is actually the same dialog for all 3 actions, just > prefix == command, # prefix == symbol, and no prefix is a file search. Super awesome, also love how vsc has ctrl f dialog per “tab” so you can do a plaintext search in the terminal and in your file, and ctrl shift f for entire project. Much better user experience then the billion button and menu ides
@019bc3
@019bc3 5 місяців тому
VSCode is not an IDE, so I have no clue how it's related to the topic of the video. Visual Studio also has fuzzy code/file search using Ctrl + comma.
@user-zl6om6kh9s
@user-zl6om6kh9s 5 місяців тому
how do you map double ctrl to ketmaop in vscode@@wolfeygamedev1688
@adriankal
@adriankal 5 місяців тому
@@019bc3if not ide that what is it? It has debugger, linters, analyzers and millions of other tools.
@KristianBssb
@KristianBssb 5 місяців тому
Yeah I was a mostly competent vim user and recently switched to vs code and have been really happy
@awesomedavid2012
@awesomedavid2012 5 місяців тому
There are things I can't stand about IDEs now that I use vim. And there are things I can't stand about nvim because I'm too bad to figure it out (like getting a solid html lsp configured and working always). So I get the best of both worlds: both have things I can't stand
@ThePrimeTimeagen
@ThePrimeTimeagen 5 місяців тому
probably the fairest take
@francisconicolau8528
@francisconicolau8528 5 місяців тому
I use nvim for rust basically, and its awesome. Used CLION for about 2 years, but the bloat was killing me. But for frontend stuff, VSCode is my go to.
@ivanjermakov
@ivanjermakov 5 місяців тому
Yep. I still have no idea how to configure .sass formatter in nvim. Not even prettier seems to support it.
@ConnectionRefused
@ConnectionRefused 5 місяців тому
I think I use tabs like you use Harpoon: I keep up to 4 tabs open for the files I'm working on, then "cmd/alt/ctrl" + "1-4" to switch to the one I want with a single keystroke. Being able to see the tabs at all times helps me remember what I'm working on. (Though I want give Harpoon another try to see if I could get used to it)
@JorgeDiaz-nu9uu
@JorgeDiaz-nu9uu 5 місяців тому
There are 2 things about PyCharm that I like: 1. Renaming modules: You can refactor the name of a module and it will automatically rename the folders, py files and imports 2. Requirements management: When you add have a library in the requirements.txt file that is not installed in the environment, it will detect it and give you the option to automatically install it by clicking a button I do not know if those are possible with (n)vim, but they would be nice functionality to have there.
@bernardcrnkovic3769
@bernardcrnkovic3769 5 місяців тому
@@anon_y_mousse yeah, the question is just why would i hunt down vim packages (which are often broken, hard to install or unmaintained (or just require a degree in lua script development)) when i can just use pycharm which has all of this bundled in? i personally use pycharm with Vim mode for editing and it is a perfect combo.
@benjaminfayle5100
@benjaminfayle5100 5 місяців тому
I like the support for pytest and especially parameterized tests
@ramennnoodle
@ramennnoodle 5 місяців тому
Neovim's built in LSP can definitely do refactoring, I use it a bunch, and you can also set up code-actions and such pretty easily. As for requirements, I'm not sure this needs to be something that the text editor needs to do, you could probably just have a bash script that installs your requirements.
@ramennnoodle
@ramennnoodle 5 місяців тому
@@bernardcrnkovic3769 There are Neovim "IDEs" or distributions like LunarVim, AstroVim, LazyVim, and NvChad that bundle a bunch of plugins and set default configs for an out of the box experience. These are still just Neovim, so everything is still configurable and open source, and is generally good for beginners to just start using Neovim.
@wolfeygamedev1688
@wolfeygamedev1688 5 місяців тому
Vsc does it as well 4 you with python plugin
@tom_marsden
@tom_marsden 5 місяців тому
The various combinations of CTRL, SHIFT, HOME, END, PGUP, PGDN, DEL, BS, and the arrow keys work great for me.
@UrzaRage778
@UrzaRage778 Місяць тому
Nah, instead of using the built-in keys on your keyboard, you should learn a bunch of random nonsensical commands to navigate your document.
@therealwtpieh5300
@therealwtpieh5300 14 днів тому
@@UrzaRage778 Or, maybe if you don't have such keys on your keybaoard, it doesn't hurt to learn a few keybindings. Macbooks do not have the majority of keys, so its a must for me since I love my macbook to death for how much better of a development device it is compared to my windows laptop. Also, macros are powerful as fuck, and I don't know if those keys are qualified as macro movements. Even if they are, they are not home row keys, and require you to look down or maybe misclick. Vim was created for power users that wanted to never leave the keyboard for a mouse, and instead manage everything. And considering how much serverless tech we use today, or cloud linux machines, good luck navigating the terminal with vscode when ssh'ing in. Are you going to go ahead and install vs code on your remote machine just so you can edit a couple config files? More over switching and managing tabs for terminal commands and performing parallel operations that require the terminal. Not everyone is going to make a GUI for all your needs. I'm not saying you gotta switch, but you should be more comfortable to change, and considering your probably in the software industry, it's disappointing that you have such negativity towards such a powerful and useful tool. When i spin up VS code, i don't need all 100 of my extensions running in order to edit a file.
@Yoolayn
@Yoolayn 5 місяців тому
_ as an operator is actually a whole line operator, so essentially doing dd or cc or yy is an alias for doing d_ y_ and c_, this is why in that example with ^ it didnt delete the line c:
@demmidemmi
@demmidemmi 5 місяців тому
Used to use vim/NeoVim switched over to VSCode and have now been trying NeoVim and it's amazing just how good it is. I remember how much of a pain it was trying to get autocomplete and LSPs up and running and how buggy it was, now it just works. But still I feel VSCode is just so much easier to use, I can just use the same 10 actions for 99.99% of the things I do while in Vim I need to remember 100s of different actions/movements. I don't have the braincells to spare to have 50% of them remembering 100s of vim movements.
@redpillsatori3020
@redpillsatori3020 5 місяців тому
Exactly. I think a lot of the vim and neovim talk is bragging or showing off
@jdrab
@jdrab 5 місяців тому
muscle memory you will build in time young padawan
@MyOneLastBrainCell
@MyOneLastBrainCell 5 місяців тому
An advantage of VSCode is that most of the features are accessible via the mouse, and most actions can be searched using CTRL+P. Personally, I find this workflow slow for me because I am slow at using the mouse and I feel that the search lacks features. An advantage of Neovim is that most of the features are accessible using only the keyboard, but with a possible disadvantage for some, which is there's a lot of possible key combinations to do stuff
@Xe054
@Xe054 5 місяців тому
Which 10 common actions do you use? Are you talking about vs code shortcuts? I use the emmet shortcuts built into vs code, but I often wonder if there's a better way to navigate inside my files. This video showed me a glimpse of what nvim can do that vs code can't. For example, can you jump inside a function's parameters or to an opening and closing tag easily? In my experience, you have to hit the arrow keys too many times to jump around the file the way you want.
@cocoscacao6102
@cocoscacao6102 5 місяців тому
​@@Xe054use the mouse. There's nothing wrong with using the mouse. Heresy, I know...
@ElMarcoh
@ElMarcoh 5 місяців тому
back in the early 2000 I started using VIM because I was a gentoo and then arch tryhard, so it was part of the cult, then I started working and was basically programming php and C into the servers directly, vim was the only editor that had code highlighting built in. I still miss the simpler times when you could get away with just code highlighting, a tags file and grep/sed
@nikotinsaure2481
@nikotinsaure2481 5 місяців тому
This seems to make writing/navigating code faster. But I'm already spending way more time reading code or thinking about problems than actually writing/navigating. So learning a complicated editor seems like trying to save on the wrong end. And oh my god I guess I would have to learn to use an english keyboard layout to make this work. The horror. I don't know. In my job I usually use whatever IDE my colleagues are using, because it makes it easier to communicate and teach to each other. I usually don't have strong feelings about the tools I'm using. I have like 2 functions I can't do without: auto formatting and being able to drag-and-drop text around. I like to use the mouse for things, especially scrolling. Maybe because I'm working with 3D modelling software a lot. And I have this problem where I tend to loose orientation when scrolling with the keyboard. So. Like. I guess people are individuals and tend to prefer different tools. or something like that.
@remssi-dev
@remssi-dev 5 місяців тому
Personally I don't think the choice of editor matters, my limiting factor in productivity is not how many characters I have time to insert/edit, its more about motivation
@CaptainWumbo
@CaptainWumbo 5 місяців тому
I mean I suppose it's hard to refute that you're feeling unmotivated? Maybe you'd be more motivated if modifying code was less painful? I'd certainly say I got much better at programming after my attention got freed up from the problem of making changes to what the changes should be. And then I got worse at programming again when I started working somewhere the dev env is hyper borked 😅 Maybe you're onto something
@SakariLehtonen369
@SakariLehtonen369 3 місяці тому
Yeah man dont tie your personality into one IDE or editor or whatever that is a tool to help you create great software.
@UrzaRage778
@UrzaRage778 Місяць тому
​@@CaptainWumbopeople like this would legit spend two minutes "learning" an ancient tech and would immediately be unmotivated and neither learn that garbage, nor get any coding done. Congrats.
@tiberiui4027
@tiberiui4027 Місяць тому
sometimes a fun editor to write in enhances motivation :)
@replikvltyoutube3727
@replikvltyoutube3727 5 місяців тому
I don't scroll and think I should continue. I always feel my finger hurt, both middle and ring, then I do Ctrl+F or / depending where I am.
@eduardo_bray
@eduardo_bray 5 місяців тому
At 11:37, part of the mind-blowing experience this kind of tips provide is that those motions were since the start of your Vim/Nvim journey, just around three keystrokes away from you.
@alexnichi9136
@alexnichi9136 5 місяців тому
I was always wonder how VIM could be compared to IDEs. For me when you speak about VIM and navigation it could be solved in my case with Resharper with all refactoring and search functionality in it. But what I like most is NCrunch functionality of live testing with lines highlights. So I change a line of code and within 1-2 minutes see failed tests and in the code, then I can see red highlights and from here to get to failed tests. As for code organization - trying to avoid huge functions and had no need to scroll function code. As for huge classes - search for functions by function name is good enough for navigation (all IDEs allows it - search by variable, function, class). So what is reason to configure VIM from scratch to support all this functions and hope that it will work from first attempt. I agree with Thiago - VIM fine for small files edit configs and etc especially on remote server. But huge app with a lot of refactoring e.g. move file/class and change it namespace and correct all code where it was mentioned e.g. import required libs and namespaces/packages. After all IMHO IDE is the way to go on huge project. VIM more likely more efficient in editing. Could please someone explain to me is it worse to configure VIM as IDEs or just bare minimum and use it for editing? Will be there boost (in future after 1-2 years) if I will try to replace IDE with VIM?
@ipwnjo
@ipwnjo 5 місяців тому
I like to use bufferline, a plugin to limit the number of open buffers and bind next/previous buffer to tab/shift+tab seems to be more optimal. The current set of files are visible and switching is a single key press. Downside is there is another plugin or config needed to be able to close tabs without losing the window configuration (it basically emulates how I would work in VSCode before)
@1992jamo
@1992jamo 4 місяці тому
Using Vim for everything is like learning to be extremely good at coding with only one arm, and suggesting the other one was just bloat.
@ultru3525
@ultru3525 2 місяці тому
It’s the opposite really. It’s IDEots using only arm because the other one’s busy clicking buttons & moving the cursor with the mouse
@heroe1486
@heroe1486 2 місяці тому
Your second arm is one your mouse or maybe somewhere else while you're waiting for your bloatware to become responsive
@Imetalh
@Imetalh Місяць тому
Exactly! I think that Vim is good with code analysis, but not exactly ideal for crafting your project codebase that requires dealing with filters or subdirectories. I'm talking about design, not configuration or cyber analysis
@zikaperic2133
@zikaperic2133 4 дні тому
i use the second arm to constantly cuddle my balls
@jimbeam9504
@jimbeam9504 5 місяців тому
Been using PyCharm Professional for years and I'm sure everything he highlighted in Vim can be done in Pycharm. I'm fullstack Django dev so write Python, JS, HTMX, HTML, etc and never had any issues writing in Pycharm. Can't recommend it enough for my use case.
@heroe1486
@heroe1486 2 місяці тому
Yes "you're sure", while even the most basic plugin wouldn't be available. Yes you can do things, just less efficiently, you could've have added css and SQL to the list that it wouldn't have changed much
@imadetheuniverse4fun
@imadetheuniverse4fun 5 місяців тому
i have my vscode setup with: - custom shortcuts to traverse files / code without mouse extremely fast, but the shortcuts are way more intuitive and contextual than vim's - fuzzy finder for files - minimal extensions it's fast, responsive, and powerful AF with zero clutter, and I never touch the mouse. people acting like you can't recreate most of this experience in vscode are no better than those that think VIM is only for showing off. both are great.
@Lampe2020
@Lampe2020 6 днів тому
6:46 Well, with the mouse I use I don't have that problem of overly long scrolling, as it's what I'd call "the perfect office computer mouse". Among other functions it has kinda "throw the wheel" functionality. Middle click is a seperate button and pressing on the scroll wheel toggles the ratchet. Also the wheel is quite heavy, so if you throw it it just keeps going for quite a while at break-neck speeds. Even with the ratchet enabled, throwing the wheel gets you quite far. And the mouse also has horizontal scrolling by pressing the wheel to the left/right and history navigation buttons (small buttons to the left of left click), making it the perfect mouse for me.
@siddhartamorionsuarez9017
@siddhartamorionsuarez9017 5 місяців тому
Fuzzy finding part is based, I have been using visual studio for c# lastly and yesterday came back to emacs, not only for the vim/emacs bindings but fuzzy project search is 100 times better than having to search in a project tree with small text (and a dozen UI icons on top). Also, Compiling with a command in bash is just perfect for compiling, running tests and moving files to a folder all after pressing 3 keys in less than a sec, It's just the perfect workflow.
@warpspeedscp
@warpspeedscp 5 місяців тому
Intellij hs a very similar way of showing project wide results!
@stefano_schmidt
@stefano_schmidt 5 місяців тому
visual studio for C# ? Hahaah, look at him
@019bc3
@019bc3 5 місяців тому
I've been using Visual Studio for C++ for years and almost never used the solution explorer to find files (nor any UI icons on top). Ctrl + comma opens code/file search with fuzzy matching.
@UrzaRage778
@UrzaRage778 Місяць тому
You can literally do everything you do in VIM, in CS & VS Code. Stop pretending like you can't 😂
@ChrisCox-wv7oo
@ChrisCox-wv7oo 5 місяців тому
Infinity scroll mouse wheels are incredible. They're on a super smooth ball bearing and they spend forever so you send it flying once in a direction it'll keep scrolling that way for quite some ways
@ivanjermakov
@ivanjermakov 5 місяців тому
It takes 1s to move your hand from keyboard to the mouse and 1s to move back. With 80WPM you could've typed 2.5 words in that time span.
@georgehelyar
@georgehelyar 5 місяців тому
​@@ivanjermakovit takes you 2 seconds just to touch your mouse? Is it in another room?
@c7rsed118
@c7rsed118 5 місяців тому
@@georgehelyarlol
@batatanna
@batatanna 5 місяців тому
​@@georgehelyarhe's gotta warm his arm up
@Bozebo
@Bozebo 5 місяців тому
Or just use "autoscrolling". Hold the middle mouse button and offset the cursor. Zoooooooom. Oh no wait you only get that on Firefox or Windows everywhere outside of almost all IDEs (or have to hand code it yourself for chromium if you want it in a non FF browser on Mac or Linux).
@illoominate
@illoominate 4 місяці тому
Hey, no mention of the "*" key! If you're on an identifier, press * and it'll search for the next occurrence of that identifier. Then just keep pressing "n" to go to the next one. You can also use # to do the search in the reverse order.
@chillonfunsmart4929
@chillonfunsmart4929 3 місяці тому
I'm a fully self taught python developer.and I can honestly say that the time I invested in learning vim was as valuable to my programming as the actual programming language.
@_bradleystrider
@_bradleystrider 5 місяців тому
the one thing i will say about mouse scrolling or even using mouse to select something into visual mode is that when I'm sharing my screen with coworkers it helps them not get immediately lost in the code, otherwise i never really use it
@arnerademacker
@arnerademacker 5 місяців тому
Good point. The mouse cursor was original called a "pointer", and that's still a valid use for it.
@AlexanderHyll
@AlexanderHyll 5 місяців тому
I mean the vim motions are pretty great in Jetbrains IDEs too. If you use the mouse in Jetbrains IDEs thats a definite skill issue not a tool issue. They highly recommend keybinds, and also encourage not using tabs, to instead use the recent files feature. There may be good reasons to use Vim over Jetbrains, but there was very little substance here I feel. The startup is indeed in comparison slow, but a multi million line project takes in the area of 10 seconds after its been indexed the first time. Its only realistically a gain if swapping project multiple times every hour. You can also hide almost all deep integration bloat if you want and just see the editor (esp with for example Zen-mode).
@SteenSchutt
@SteenSchutt 3 місяці тому
Startup time is also kind of a non-issue once you have a single instance running. I hop around between several projects many times in a day. I just launch the project with dmenu and it takes a couple of seconds at worst, which isn't enough for me to care. It'd be worse if it was my terminal which I spawn and close hundreds of times per day.
@heroe1486
@heroe1486 2 місяці тому
Vim key bindings in most IDEs are only good if you're a vim beginner, otherwise it's quickly limiting.
@heroe1486
@heroe1486 2 місяці тому
​@@SteenSchutt Still important when you want to do quick edits while retaining the power of a complete environment, in few seconds I've already opened a file by using zoxide fzf and nvim while the jetbrain IDE isn't even loaded and responsive, dmenu/rofi being blazingly fast won't help those IDEs opening faster
@AlexanderHyll
@AlexanderHyll 2 місяці тому
@@heroe1486 its only when opening a new project though. Swapping through files within a project is as fast as in Vim. Idk about you but Im not swapping projects often enough for those few seconds to matter.
@AlexanderHyll
@AlexanderHyll 2 місяці тому
@@heroe1486 i do agree about ”most” IDEs but not specifically the jetbrains IdeaVim plug. I’ve used nvim for personal projects for a long time, definitely not a brginner and I rarely find things missing, and the ones that have been are easilly configured through built-in features. In the other direction vim relatively often lacks things I use that Jetbrains offer in terms of editing. Refactoring (technically has it but doesnt work in large projects)/live templates/postfix/extracting methods to name a few.
@SergeyKuzmichev
@SergeyKuzmichev 24 дні тому
I wrote a whole book in vim. The amount of decluttering and focus you get there with a couple of plugins is astounding.
@colinmaharaj
@colinmaharaj 5 місяців тому
Been using and IDE from 1991. It was turbo pascal, then turbo C++, then Borland C/C++ then Borland C++ Builder and now Embarcadero C++ Builder.
@johanekekrantz7325
@johanekekrantz7325 5 місяців тому
Have been using Vim + i3 for the last 5 years. Rarely any need to take your hands of the keyboard, no need to have different navigation commands in your os and editor, consistent interfaces and pretty much as minimal amount of clutter as possible.
@efi945
@efi945 4 місяці тому
I started programming without any IDE on ZX Spectrum, then I had to use QuickBasic's "IDE" and then Turbo Vision C/C++... then RHIDE which was never near to experience of TV... then SciTE, then Sublime, then VSCode and to this days neovim... whatever whoever thinks about it, if somebody created IDE like TurboVision I'm totally in... if it's configurable with lua as nvim is and has windows like TV had I would't be able to resist... If I found way to force nvim behave like TV, I'm totally in... love your content btw. ;)
@jadencorr6897
@jadencorr6897 5 місяців тому
I am using PyCharm as the main tool, and refactoring, debugging, and general code is just in place. Also it has a good simple support for other languages out of the box. So I see no reason for my switch to any other tool. None of arguments in the video is my argument for it =)
@thwKobas
@thwKobas 5 місяців тому
Good luck creating mobile application in text editor only. I do agree that vim is faster than writing same code in Android Studio for example (or Xcode) but those tools provide GUI for creating and debugging UI, handling localization, project configurations, certificates and much more than just writing code. You have so many things already created for you just click away, you can inspect database or preview assets or any kind right there without need for using other tools. Whole package preparing and publishing is done using wizard like solution where you just keep clicking and choosing your preferred options. It's just not the same. To me it's fine to compare Vim with VS Code or Notepad++ or Sublime, but you can't compare it with mentioned Xcode.
@thebluriam
@thebluriam 5 місяців тому
Freakin' thank you! I don't understand why this knowledge isn't ever discussed.
@hamm8934
@hamm8934 5 місяців тому
Im a flutter dev that uses neovim. I do all of this from vim and the cli. Most of what you think vscode is doing for you is actually being done by the lsp and project config folders interacting with the cli under the hood. Vim can replace vscode as the client to handle all of this. For instance, flutter-tools.nvim handles all of flutters auto refactoring functionality in vim, the same way the flutter extension does in vscode. The flutter cli handles all of the same emulator running and hot reload functionality as vscode does. Vscode is simply a client which has servers underhood that any other client can use, such as vim or emacs. Theses nothing vscode has that is proprietary and not also used by the vim community.
@thebluriam
@thebluriam 5 місяців тому
@@hamm8934 The OP is talking about using Android Studio for Android development which has tools built-in and wonderfully integrated together in ways VSCode and NeoVim can't.
@Fakheet
@Fakheet 4 місяці тому
This. Xcode is dogshit and is painful to use, but it would still beat out nvim in a long run because of the things mentioned + it's completely impossible to dev for ios/android without ui debugging tools. Webdevs are lucky in this regard because they have this functionality built into the browser.
@hamm8934
@hamm8934 4 місяці тому
@@Fakheet youd be surprised. I have a colleague that does native ios work in neovim and debugs with dap and a simulator
@sfcs3743
@sfcs3743 5 місяців тому
Most of the features here could be used in IDE's if you are persistent enough to learn the "bloat" and how to be efficient with it.
@adam29334
@adam29334 5 місяців тому
yes, you can get an ide to the point where you do everything with shortcuts (but with a vim plugin) but why not just use vim at that point?
@biomorphic
@biomorphic 5 місяців тому
Or you can use the vim bindings. If you are used to vim.
@rasmuslarsen77
@rasmuslarsen77 5 місяців тому
The biggest problem here, is that every optimization you learn and setup you do in an IDE is locked into that IDE. If you want to change IDE, you need to learn and setup once again. With vim, you can iterate your setup as you learn.
@biomorphic
@biomorphic 5 місяців тому
I am sorry man, but if you ask this question it means you really never used a good IDE, and especially a debugger. I feel the vibe of a JavaScript developer.@@adam29334
@unusualdri
@unusualdri 5 місяців тому
@@adam29334because coding is more than using shorcuts
@NicolayGiraldo
@NicolayGiraldo 14 днів тому
In the video I did not see a single thing I can't do in sublime text, and vim is clumsy when I try to do this: - Multiple cursors, I select search all appearances of something I want to change, and then I have a cursor on each of them. I can then edit the code normally, but simultaneously in many places. - Emmet (formerly Zen Coding), it is just a breeze to use it, no mode changes or anything. - Moving the selected text up or down one line at a time =) - Git gutter: It can be installed in vim, and it is very basic. The version in ST is much better.
@Jake-mp7ex
@Jake-mp7ex 5 місяців тому
Started with the Vim plugin for Pycharm. Currently I'm struggling to avoid the mouse because I like having 2 tabs open simultaneously. Also I'm so used to control clicking my way through code. Also doing a control find and placing the cursor on a word so that 2 things are highlighted at once.
@lexcheshir6416
@lexcheshir6416 5 місяців тому
I've set leader + q/w/e/r to go to the 1st/2nd/3rd/4th tab accordingly. Alt or ctrl + key should work better because you don't need to unpress leader key for it to work. For vertical movement ctrl+d and ctrl+u for half page movement (also recommend to remap them to add zz in the end which centers the screen) and { } for jumping to next empty line. Also you can browse IDE's actions to find smth usefull for you (example: close all tabs except current, close all unedited tabs etc) and map them to to smth like leader + x or any other key in ideavimrc. Hope smth will be usefull.
@galenseilis5971
@galenseilis5971 4 місяці тому
Off the top of my head I recall that my text editors for writing code went in the order: notepad -> notepad++ -> nano --> vim. I also use vscode for some work stuff, but I don't see it as a replacement for vim.
@julkiewicz
@julkiewicz 5 місяців тому
Can you do refactorings across all project files in vim? I use that feature maybe like 100 times each day in Rider. And since it understands exactly all the usages it'll rename things perfectly, including highlighting naming clashes, even making suggestions as to what else to rename to keep things consistent. I could never use anything that doesn't have that. It's also not just renames, but refactorings like moving classes to outer / inner scope, creating interfaces, etc. Autocomplete is like 5% of the solution for me.
@Peter-UK-nl6cv
@Peter-UK-nl6cv 5 місяців тому
Theoretically language server's should be able to provide this functionality, but I think currently the IntelliJ family of IDEs still has the leg up when it comes to refactorings. They have their own "language server" kind of implementation. But I think as language servers mature and gain functionality IntelliJ will lose this advantage more and more.
@desertfish74
@desertfish74 5 місяців тому
I'm with you here
@captainnoyaux
@captainnoyaux 5 місяців тому
refactoring with jetbrains ide are top notch, I use ideavim with jetbrains and it's the best quality/cost setup
@0oShwavyo0
@0oShwavyo0 5 місяців тому
I was a RubyMine user and thought I needed this. Turns out that once I could no longer change a class name throughout a whole project on a whim, I actually thought about the class names I was using before settling on one. Now I don’t miss the project wide refactoring tools 🤷‍♂️ they’re definitely nice to have but also quite easy to live without
@carlsjr7975
@carlsjr7975 5 місяців тому
Sounds like a language or design problem
@tigana
@tigana 5 місяців тому
Hey Prime just wanted to say you're saving my life with your DSA course on Frontend Masters. I'm interviewing with a fairly large company next next week and they said I'd be doing DSA for one portion. I'm self taught so I was slightly concerned ngl but it's super fun so far! Besides interviewing, I'm really excited to make my code more efficient. I feel like things are really coming together now, so *thank you* :)
@mianashhad9802
@mianashhad9802 3 місяці тому
How did the course go? I have recently passed my DSA course but I still think that I need a good course to fully grasp it tbh Anything you found missing in the course that you needed extra resources for?
@thomassynths
@thomassynths 5 місяців тому
I used vim for over 10 years (intermediate skill level). Ever since I used VsCode, I never looked back. The cold hard truth is that all these minutiae vim tricks don’t actually improve productivity in a substantial way. Vim keybindings are all you need. Sorry not sorry.
@robertfox4114
@robertfox4114 5 місяців тому
L
@spacey_sooty
@spacey_sooty 5 місяців тому
I started on vscode and moved over to Neovim. I have no idea how anyone prefers it. A its significantly slower everything has noticeable delay, B it everything works worse and C it didnt teach me about my tools. The first two, might just be my computer or is just personal preference but the last one you cannot deny. I learnt so much about my tools from Neovim. I could never go back to Vscode its terrible
@hamm8934
@hamm8934 5 місяців тому
If VsCode’s vim emulator wasnt so dang slow and had better jumplist and mark emulation, i would agree. But until it does these things, i just cant leave vim. Ive tried.
@Spongman
@Spongman 5 місяців тому
you don't even need vim keybindings to do all the things demonstrated in the video. vscode has all of that built-in.
@brinckau
@brinckau 5 місяців тому
So, VScode is good when you make it reproduce vim's behavior?
@djsheets
@djsheets 24 дні тому
as for tabs in VS code you can set up shortcuts to move them around (i.e. change their order), and by default CTRL+1 (on mac) will make you jump to the first tab, CTRL+0 to the last tab. It is basically like harpoon with 10 files at once, once you can easily change the order of the tabs with keyboard, you don't need your mouse for this. obviously searching through all the open tabs with CTRL+Tab or whatever is exhausting and suboptimal.
@dmytroparfeniuk2670
@dmytroparfeniuk2670 5 місяців тому
I’m going to say something crazy but don’t you think that your harpoon is a try to replace missed tabs in vim? Like I mean, tabs are just opened files in a current moment of the time which is definitely the same what the harpoon does P.S. I use the harpoon by the way 😂
@niersilos
@niersilos 5 місяців тому
ngl even though I probably would will never take the time to learn vim or nvim, prime has convinced me to try learning vim motions and honestly its great, would definitely recommend
@brinckau
@brinckau 5 місяців тому
I've been using vim for 20 years. I just went through vimtutorial, and started using it. It's better to learn all the advanced things, but not required at all. From time to time, I learn something new, it's enough for me.
@Tobsson
@Tobsson 5 місяців тому
I've tested a few languages. Zig, Go, JS, TS, Rust all great in vim! Java - IntelliJ is so superior I just use it with vim motions. C# is not something I've touched since I didnt know how to program at all, but I guess visual studio is better since its so much like java?
@anlumo1
@anlumo1 5 місяців тому
All of the things listed (except for startup time) are just editor things that many other editors (including vscode) can do as well, it's just shortcuts involving modifier keys instead of regular keypresses. The advantage of the other editors is that you're never accidentally entering control sequences into the text or trigger control sequences when you wanted to enter text (which happens to me all the time when I use vim).
@theodorealenas3171
@theodorealenas3171 5 місяців тому
There are pros and cons to Vim but to me, this is not one of them.
@biomorphic
@biomorphic 5 місяців тому
I hate vim. Started to use vi when I was 16. 40 years later I still hate it. The insert mode is rubbish. I feel you.
@alexaneals8194
@alexaneals8194 5 місяців тому
I like vim for C development or for writing BASH scripts on Linux, but for most of my work I use the IDEs for the environment. If I am writing PL/SQL for Oracle then I am using SqlDeveloper and SSMS for T-Sql for Sql Server, PyCharm for Python and VS or VSCode for C#.
@tom_marsden
@tom_marsden 5 місяців тому
absolutely, using the best tool for the job is the way to go.
@ryanleemartin7758
@ryanleemartin7758 5 місяців тому
I grapple with this. I bounce between nvim and jetbrains. nvim is incredible and paired with tmux or zellij you can get some speedy workflow and jump between different projects in different language instantaneously. That's awesome. BUT, I don't like editing code all day in the terminal. After a while it just annoys me. On the other hand. Jetbrains is beautiful with the minimal gui. Nice text rendering and scrolling and great search features, vim emulation is really nice too. BUT try having multiple projects open at the same time and in different languages? Brutal.
@hrmny_
@hrmny_ 5 місяців тому
I keep wanting to use the vim integration in jetbrains, but for some reason the delay doing anything (even just opening the recent files popup) makes it so uncomfortable for me that I end up using the mouse instead
@ryanleemartin7758
@ryanleemartin7758 5 місяців тому
@@hrmny_really, I've never had that problem. If I did that would be unusable for sure
@pierreollivier1
@pierreollivier1 5 місяців тому
@@hrmny_ Jetbrains IDE are insanely slow, compared to vim/nvim/helix or even VScode which tells a lot, and apart from the debugger I really don't understand what's good with them.
@warpspeedscp
@warpspeedscp 5 місяців тому
​​@@pierreollivier1if you were to forget for a second that the intellij platform is slow as frozen molasses, it's a pretty decent experience actually. Of course, it can be pretty damn difficult after you experience the snappiness of nvim or even vs code
@pierreollivier1
@pierreollivier1 5 місяців тому
@@warpspeedscp I mean surely it's probably not that bad, but I just don't understand the workflow, because I'm constantly switching tabs, moving from file to file, greping left and right, It did actually bothered me a lot that the syntax highlighting wasn't instant despite running a very good computer, on top of that a very simple project in C (about 10k lines) took like about 10/20 second to fully load, this to me was insane, everything is instantaneous in the terminal, and with support for lsp, you basically have the same kind of functionalities that an IDE can provide without all the bloat. But in the end it probably is just personal taste
@nirlichtman
@nirlichtman 3 місяці тому
Thanks for covering my video Prime :)
@Hadw1n
@Hadw1n 5 місяців тому
I think I am convinced. I will go with it.
@tswdev
@tswdev 5 місяців тому
On your played videos, you got "Miss Monique". Weirdly enough, I found her (and her photographer) doing a music video in the Sintra forrest about 2 months ago while on a trek. Just found it funny how random dots connect eh?
@wintersakuraa
@wintersakuraa 4 місяці тому
when you actually have to do a log of refactoring (file movement with refactored imports, change bunch of filenames with changed imports, copy paste a lot of folders etc) it's actually usefull to use JetBrains IDEs cause i am not quite sure if it is possible in vim. i know there are a lot of things that LSP can do, but i personally did not find any solution for above problems, so as for refactoring i thing IDE is must have choice
@vidal9747
@vidal9747 5 місяців тому
I am doing a slow transition to vim. I really like PyCharm. But it uses a LOT of RAM. I just don't have the time to learn everything about vim while also setting up a fully featured IDE like VIM experience. So for now I am happy with VIM plugins.
@biomorphic
@biomorphic 5 місяців тому
Buy a computer with more RAM.
@xybersurfer
@xybersurfer 5 місяців тому
exactly as @biomorphic said. it's cheap and much easier fix to just get more RAM if you value your time
@vidal9747
@vidal9747 5 місяців тому
@@xybersurfer I am in college and don't have money for a new computer. My notebook is with the maximum amount of RAM It can have (20gb I know it would be faster in dual channel, but I was stupid and bought a notebook with soldered 4gb of RAM). I frequently run code that uses up to 14gb of RAM by itself. Can you see how this starts to be a problem when the IDE is also RAM expansive? I literally can't trow more RAM at the problem. Maybe when I leave college and get hired, but will only leave in the end of 2024. I could use a lighter desktop environment like a tilling window manager, but the learning curve is step and I really don't want to atm.
@warpspeedscp
@warpspeedscp 5 місяців тому
​@@vidal9747i feel your pain, I hope ypu can ditch that resource hog ide (which i am beholden to due to familiarity and laziness)
@aziz9488
@aziz9488 5 місяців тому
In this case I agree, you should use vim or notepad++ or whatever and compile and debug from the command line, this way you learn the fundamentals well, it works because you have time. It wouldn't be acceptable to do this professionally though.
@shampoable
@shampoable 5 місяців тому
I appreciate Prime dropping this after November has ended
@luccaflower751
@luccaflower751 5 місяців тому
agree on the java front - every so often i try to make myself a workable neovim setup for java with jdtls, and every time i get just a little bit closer before going straight back to intellij with ideavim.
@LuisM_Santana
@LuisM_Santana 5 місяців тому
man, is it really good? tried neovim for like an hour and hate it so much. I'm also a Java dev and intellij has been my daily driver for years now and there are so many tools integrated with intellij (sonar, docker, the whole spring boot config, tests config, gitlab config) that took quite a long time to get right. Going trough all of that again on top of neovim seems like a huge amount of work for something I don't see that will return that much value. But hey just my opinion, I'm really willing to hear people from a java dev perspective on this subject
@luccaflower751
@luccaflower751 5 місяців тому
@@LuisM_Santana it's really not, hence why i keep going back to intellij :)
@khatdubell
@khatdubell 5 місяців тому
Oooooh! in VIM you can navigate to the beginning or end of a line?! Im sold. Oh, wait...what's this? A beginning and end line key on my keyboard? Shoot, i was almost sold.
@gianlucaspitzer5165
@gianlucaspitzer5165 9 днів тому
But how far do you have to move your hand to actually use those? On vim it's "I" and "A".
@khatdubell
@khatdubell 9 днів тому
@@gianlucaspitzer5165 not far enough to make a difference.
@user-ec6vf7zq9j
@user-ec6vf7zq9j 8 днів тому
@@gianlucaspitzer5165 takes the same amount of time to quickly move the hand as it does to raise a finger
@khatdubell
@khatdubell 8 днів тому
@@gianlucaspitzer5165 not far enough to matter
@MrSlowestD16
@MrSlowestD16 8 днів тому
@@gianlucaspitzer5165 If you think the bottleneck to your productivity is your pinky reaching past the enter key, you're either writing trivial shit, or you're living in a fantasy world. Nobody says "enter is too far", it's what, 2" past that? Maybe? Once you know where it is you can do it blind.
@age-hall
@age-hall 5 місяців тому
I am in two minds, using LazyVim and tmux. Trying to do everything in this environment, database tooling is OK using DBUI but not as productive as using a tool like DataGrip. Running things in the terminal is a little clunky and maybe my lack of experience. Easiest for me is to have a terminal open as tmux window and use tmux keybindings to switch between neovim window and terminal. Have tried opening a vim split and using :term but the experience is clunky. Now I have tried moving back to jetbrains tools and getting into ideavim config to have similar keybindings to neovim setup. Early days but experience so far is good. Yes more bloat and but easier access to extra tooling.
@TehKarmalizer
@TehKarmalizer 5 місяців тому
Prime also uses tmux. When he said sessionizer, that’s what he’s talking about. He doesn’t use a terminal in vim. I agree that it’s clunky. I don’t tend to use the terminal in vim too often, whether in another tab or a split.
@ryanleemartin7758
@ryanleemartin7758 5 місяців тому
The sunk cost for C-d is also real for me in large files. I know I could just search the thing but I've hit C-d 8 times and I'm not stopping now!
@painedpineapple
@painedpineapple 5 місяців тому
Prime, I’ve never seen someone demo a good NVim/Vim project-wide search & replace comparable to VSCode but would love to see it. It’s the #1 reason I’m stuck in vim motion land. The context is a large refactor of a code base. How would you approach such a problem?
@juliancorredor1128
@juliancorredor1128 5 місяців тому
I use spectre plugin in nvim or just a plain telescope search, send to qflist and apply a macro to replace
@peterhorton9063
@peterhorton9063 5 місяців тому
Grep then cfdo on the resulting quickfix list
@charismarangos4120
@charismarangos4120 5 місяців тому
These arguments always fail to convince me. IDEs have those things called "shortcuts" that let you quickly navigate your code. And guess what they're also customizable. You can also press Home or End to get to the beginning or end of the line, do people not know this? You can combine that with shift to select as well. This works on every single text box that isn't a terminal on both Windows and Linux, not just IDEs. This video was acting like only vim has this functionality. Yeah, sure, IDEs take a while to boot. How many times do people start their IDE in a single day? I just open it once and let it run, and don't even bother closing it most of the time as I go on to browse the internet. Edit: Yeah I forgot to mention, I'm using JetBrains IDEs which are superior to any other IDEs in terms of built-in functionality and customization.
@Tattersail
@Tattersail 2 місяці тому
In intellij i only use scrolling locally, while staring down long legacy functions and such. For navigation i would jump to symbol names, or hop to line numbers if i had a good idea of where i saw something but didn't remember what it was called.
@replikvltyoutube3727
@replikvltyoutube3727 5 місяців тому
Is there any like way to setup a really minimal LSP or like remote one. Like somehow have a functional of LSP but without plugins, on like servers and minimal vim installations and stuff?
@tierlatte658
@tierlatte658 4 місяці тому
I didn't know the benefits of vim, I use vim just to try to be difficult and show off
@Codigger-br2rt
@Codigger-br2rt 2 місяці тому
IDE actually contains many advanced technologies than regular text editors. These IDEs will truly parse the program text before starting to analyze the structure inside. Their "jump to definition" is generally a very precise jump, rather than guessing blindly like a text editor. This kind of operation targeting programming languages can greatly improve people's thinking efficiency. It frees the programmer's mind from trivial details, so they can focus more on the semantics and algorithms of the program itself, so they can write more beautiful and reliable programs.
@CarlTurechek
@CarlTurechek 5 місяців тому
May I introduce the concept of the scroll bar 🤣
@MrSlowestD16
@MrSlowestD16 8 днів тому
I don't use IDE's, but mostly all of these things are just things that exist in every editor anyway. They're not VIM specific. You can jump to a brace in any editor, you can ctrl+F to search in any editor, you can ctrl+P to open a file in many editors. You can use a langauge server or language plugins in many editors. None of this is VIM specific stuff. Problem with VIM elitists is they think the biggest barrier to productivity is using a mouse, but that's not reality. You take a second to think of what a conditional will be, or what methods an object has, or if this is the 4th or 5th field in a c'tor. Nobody is capped by window switching speed or "ctrl+F" being too far away.
@calder-ty
@calder-ty 4 місяці тому
I used VsCode for 7+ years, basically from when it was first released to just a few years ago. I liked it because it allowed me to get good at 1 tool. I did pycharm for a bit but inevitably i had to write for a different language (js or sql) and it was clunky and switching tools to do the same job was awful. So get good at your editor. I got really good at vscode and had it configured. That being said i think Vim is superior because the motions are composable, and the editor is easily programmable. In vscode you can have hotkeys but if you want a new hotkey that composes multiple together for a common workflow? I don't remember that being possible. And then writing any custom plugin was a pain and still very limited by the API provided to you.
@69k_gold
@69k_gold 4 місяці тому
Tbh, the reason I use VS Code as my editor is: 1. One editor for all languages 2. Shows a directory structure, this is the main selling point of GUI editors, they show you the directory tree of your project, I don't want to ls into every sub directory when I need to find a file, I can just click on it Disadvantages: 1. It hogs atleast 3GB of RAM, that's 75% of my VM. I generally use no extensions except basic language-specific highlighting and formatting
@GiovanniCKC
@GiovanniCKC 5 місяців тому
quite the opposite though-- I've only been working on smaller projects, and I really don't like having a lot of stuff going on in terms of plugins and config, and I've come to find that tabs out of box are in fact way better supported for navigation than buffers for a small number of files. I generally have maybe 4 to 6 files open at a time a LOT of the time, so I can not only see all 6 at once in order without configuration, I can also flip between them making simple *linear* direct jumps and relative jumps using `[count]gt` or `[count]gT` also ID assignment is WAY simpler for tabs because there aren't any hidden special files to think about like the quickfix or location list or helpfiles or oldfiles or any of that stuff that I have to deal with daily now unless I `:bwipe` everything almost all the time. *Yes* a large project with a bunch of files to sift through is going to break those advantages but for literally any of the million times that I'm either making some notes or writing a quick bash script or something like that it's actually better. It's like a binomial vs a linear function in terms of time wasted if ya know what I mean.
@RockTheCage55
@RockTheCage55 5 місяців тому
i primarily use jetbrains IDEs & VSCode. Maybe i should dig deeper into using VIM/NVIM
@haxguy0
@haxguy0 4 місяці тому
Prime I'm interested in what your configuration looks like. I get overwhelmed by the possible configurations and then alao get frustrated with copy paste options using vim
@carlhandy
@carlhandy 5 місяців тому
I use webstorm (switched from vscode) and I rarely use my mouse 🤷🏾‍♂️ might give vim a shot
@TheSismeon
@TheSismeon 5 місяців тому
I ended up getting the best of both world with vscode with vim motions plugin. This way i get the bloat AND the efficient motions!
@yabuking84
@yabuking84 5 місяців тому
VSCode has profiles, i have 2 profiles one for python then one for VueJS. It easily loads extensions for a profile. so if I do python it loads all the needed python tools and if Vuejs it changes seemlessly.
@mystic_monk55
@mystic_monk55 5 місяців тому
Which program prime is using to show the keys on keypress?
@paulpladziewicz
@paulpladziewicz 5 місяців тому
I'll utilize all the vim motions/tips here, plus enjoy everything I like about Intellij, without having to manage it.
@darukutsu
@darukutsu 5 місяців тому
sir, why you aren't using qutebrowser or some vim based extesion like tridactyl for more efficiency?
@ky3ow
@ky3ow 5 місяців тому
9:53 the `_` is [count] - 1 lines downward, on the first non-blank character, where `^` is just this line first non-blank, you use `_` when doing dd actually, you just do d_
@kernellpanic
@kernellpanic 5 місяців тому
I love vim. But something I like about UI editors is renaming var names within a certain scope... without worrying about renaming the name var in the whole file. Also finding vars in the whole project sucks. Not sure if there is a solution in vim.
@zebj16
@zebj16 4 місяці тому
You need to learn ed... (Unix line editor, precursor to vi).😊
@nirlichtman
@nirlichtman 4 місяці тому
There is - language servers, on my setup in the video I use only two plugins, both are related to language servers :)
@kylaxi
@kylaxi 12 днів тому
Vi . Reminds me that the ispf edit was so awesome. For me vi was a nightmare.. commands were similar but you can’t see some of the stuff you do in vi.
@cocoscacao6102
@cocoscacao6102 5 місяців тому
Vim, nvim and others are just tech masturbation. Writing code and navigating a file is the least of my problems. In VS you can actually drag a debugger to a certain point, write additional code, and test it on the fly. VScode has extensions for live scripting environments for many languages. It's 1000x more valuable than fast typing and editing.
@somebodyoncetoldme1704
@somebodyoncetoldme1704 3 місяці тому
In eclipse if you double click the curly braces it will bring you to the matching pair. do vim users really think a mouse can't be efficient?
@lhxperimental
@lhxperimental Місяць тому
It **is** just a flex, even if the video says its not.
@FrostsorrowGaming
@FrostsorrowGaming 2 місяці тому
I remember having to learn how to use Vi at work cause we had unix customers that we supported and had to manually install some of our interfaces on their boxes... I was never a unix/linux person.. this whole experience is so weird cause it just doesn't seem to make sense with how it functions... like saving.. and writing to a file.. and just i dont know... my GUI brain was always screaming " WHY CANT I JUST CLICK?!?!" lol :D
@radvilardian740
@radvilardian740 5 місяців тому
my first IDE is notepad, then bluefish once i know linux, then vscode and vim/neovim for the last
@Chrispyy__
@Chrispyy__ 5 днів тому
The first 3 seconds I didn't realize Rick Sanchez couldn't stand IDE's after using VIM
@bobanmilisavljevic7857
@bobanmilisavljevic7857 5 місяців тому
I really enjoy using vim the past few weeks and dont see a reason not to use it yet
@gordonfreeman9942
@gordonfreeman9942 5 місяців тому
d_ deletes the line like dd does, where d^ deletes the text from coursor to the begining of the text - very useful!
@AllemandInstable
@AllemandInstable 5 місяців тому
I like VSCode because it is the only software that allows me to have 100% custom vim motions the day i will be able to easily fully remap vim motions [ ALL OF IT ] then I will consider vim
@pencilcheck
@pencilcheck 5 місяців тому
excuses, just start using vim and then you will never look back (jk, you do you, not everyone is suited for vim)
@0oShwavyo0
@0oShwavyo0 5 місяців тому
Just curious, what do you want to customize that you can’t customize in vim?
@AllemandInstable
@AllemandInstable 5 місяців тому
@@pencilcheck I like vim motions, I don't like vim mapping of vim motions. I really tried hard searching for a way to fully map the keybindings from scratch, and the only answer that came up is that I need to modify the vim source code... I looked for plugins, none as well.
@AllemandInstable
@AllemandInstable 5 місяців тому
​@@0oShwavyo0 Feels like I am getting banned from replying to your comment since I tried to send in the comment an imgur link of my keyboard keymap I want to use, but basically I want to map everything by myself from scratch because I want to have the keybindings for moving around, selecting and editing ther way I like them and feel intuitive. From my understanding you can't do that unless you modify the source code
@ShadoFXPerino
@ShadoFXPerino 5 місяців тому
vim can't detect key-up actions. If you hold shift, hold space, press P, and release space, that is interpreted the same as if you hold shift, press and release space, and press P.
@zeocamo
@zeocamo 5 місяців тому
there is one not tip here, if you select a block and you want to move the cursor to the other end, maybe to select more there, something.... just hit it with the o MAGIC!
@fahimemroz9141
@fahimemroz9141 5 місяців тому
You can also use vato instead of the vat% sequence
@TheJanstyler
@TheJanstyler 4 місяці тому
I know it's probably not gonna happen, cause thats not the type of content you make, but man would I love to see a vim guide made by you. The way you operate in vim feels like magic to a university vs code scrub like me. xD
@chindianajones3742
@chindianajones3742 4 місяці тому
He does have vim guides. Not sure if he has his personal setup/config but you can learn vim basics from him
@RaduCruceru
@RaduCruceru 5 місяців тому
The hat ^ and dollar sign $ come from regex, meaning begin and end.
@FunkyELF
@FunkyELF 5 місяців тому
In VSCode I like multiple cursors and ctrl+d. In PyCharm I like ctrl+w which keeps widening your selection
@yhtomit28
@yhtomit28 4 місяці тому
Only watch out if you've been in PyCharm for a while and then end up in VSCode and reach for ctrl+w to widen your selection... 🙈🤣
@MrBadSmash
@MrBadSmash 5 місяців тому
Prime at 7:35 trying to think of any number at all is peak Prime time I love it
@henriquematias1986
@henriquematias1986 13 днів тому
I used vim for years but honestly if you spend 1/50 of the time you spend tweaking vim to tweak VSCode it will come through. You can make it fast and you have a console inside of it in case you would want to vim a bit or you can just tab to a vim. Now i have the best of both words and i wouldn’t want to go back. ( :
From VSCode To Vim | Prime Reacts
26:11
ThePrimeTime
Переглядів 222 тис.
Carmack Doesn't Like Vim | Prime Reacts
26:52
ThePrimeTime
Переглядів 363 тис.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 13 млн
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
Every programming language explained in 15 minutes | Prime Reacts
43:42
ThePrimeTime
Переглядів 358 тис.
Interview With A Sr JavaScript Dev | Prime Reacts
24:43
ThePrimeTime
Переглядів 124 тис.
ThePrimeagen Hacks My Productivity
3:30
Scott Macchia
Переглядів 28 тис.
QUIT VIM Because Modern IDES are magic
23:08
ThePrimeTime
Переглядів 277 тис.
600 Rejections  Finding A Job In Tech | Prime Reacts
48:58
ThePrimeTime
Переглядів 241 тис.
3 Chars - 20x Perf Improvement
8:46
ThePrimeTime
Переглядів 52 тис.
Why Neovim nerds are so obsessed with the terminal
6:44
Joshua Morony
Переглядів 68 тис.
Scams In Software Engineering
31:44
ThePrimeTime
Переглядів 421 тис.
What Does Your Editor Say About You | Prime Reacts
22:12
ThePrimeTime
Переглядів 219 тис.
Vim vs NeoVim, What's the Difference?  Which Should You Use?
10:29
Mental Outlaw
Переглядів 306 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 976 тис.
Какой у тебя процессор?
0:44
CompShop Shorts
Переглядів 210 тис.
Как установить Windows 10/11?
0:56
Construct PC
Переглядів 1,5 млн