Why Everyone Should Start Using Vim

Sdílet
Vložit
  • čas přidán 15. 08. 2023
  • Today we discuss why every single programmer should learn how to properly use Vim.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    💼 Services 💼
    💻 Freelancing & Tutoring: www.neuralnine.com/services
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
  • Věda a technologie

Komentáře • 73

  • @LucasLima-ym1lb
    @LucasLima-ym1lb Před 9 měsíci +13

    Best code editor of all time! At first, the learning curve is high but when you get used to it, it's gonna save you time and improve your workflow a lot. Thanks Bram Moolenar, rest in peace 😢

  • @moondevonyt
    @moondevonyt Před 9 měsíci +17

    massive kudos to the creator for diving deep into Vim and shedding light on its potential
    but real talk, in an era where we've got so many user-friendly and intuitive IDEs, pushing everyone to jump on the Vim bandwagon feels a bit old-school
    however, got to hand it to you for making Vim look cool and showing its value for programmers
    mad respect for your passion

    • @thedeparted_one
      @thedeparted_one Před 9 měsíci

      what are those illusive 'many user-friendly and intuitive IDEs'? PyCharm? VsCode? Sublime?

    • @AntonioRonde
      @AntonioRonde Před 9 měsíci +1

      I think only using vim should not be the end goal. It is about thinking more clearly about what you want to achieve. Inside our daily workflows when editing code there are all these tiny inefficiencies that vim makes obvious. The same kind of inefficiencies are also in the code we write. They are also in companies. In markets. And once you know clearly what you want to do, you will recognize new ways of achieving it. Vim is like the gateway drug to first principles thinking.

  • @alien8tiv
    @alien8tiv Před 9 měsíci

    Been using for a decade and a half. Have a lot of keybinds down, but I'm still learning new things of vim, like some in this video. Thanks

  • @evascroll
    @evascroll Před 9 měsíci +11

    Great vid! Im 47old cabinet maker that just start learning coding in python and taking computer science, my firt time using vim didn't have any problem using it! Because i always read and learn how stuff work before i try my self! I have vs code, but vim give me a more personal feel! Actually im using lunarvim that just finished configuration a week back! Still learnings about the command and shortcut but i thinks is more fun than vscode! Thanks for your videos and gretting from puerto rico!

    • @nickmills8476
      @nickmills8476 Před 9 měsíci +1

      I think vim gives a more tactile feel for the code. When using vs or similar many different code structures are basically edited the same way. In vim on the other hand there’s a key binding for everything you do, different code is handled differently, as it should be. I find I’m more aware of the code in front of me when I use vim, because of this tactile reinforcement.

    • @evascroll
      @evascroll Před 9 měsíci +1

      Exactly! As a beginner I feel that vim kinda make me understand and learn better of what I'm writing and what it does! Vs code kind do what ever it wants! I have lunarvim even in my tab s8 when vscode is only available on cloud!

    • @mouhamed2692
      @mouhamed2692 Před 4 měsíci

      @@evascroll what about neovim or should i start with vim first

  • @vandorlokronika9581
    @vandorlokronika9581 Před měsícem

    Most of the things which you have mentioned in the video can be achieved with modern editors by using their built in keybindings and the modern keys like insert, home, end, delete etc. If you learn macros you can get almost everything with them what Vim or Emacs can offer. Vim is a great editor but its speed can be achieved with other editors if you don't relay on the mouse constantly.

  • @eclypze_
    @eclypze_ Před 5 měsíci +2

    I'm so glad my first professor told us to use Sublime text instead of VS code!
    Thanks professor Ciccio lol

  • @bulelanibotman
    @bulelanibotman Před 9 měsíci +1

    11:44 - this is so true, i can't code without vim. i feel alienated whenever i write something even on notepad when i don't have my vim bindings. i can't truly say i am not a god at vim nor do i know some nuances of it but the basic navigation key bindings make my life a breeze

  • @lorenzomizushal3980
    @lorenzomizushal3980 Před 9 měsíci +6

    The amount of time you save when using VIM is probably roughly equal to the amount of time spent learning it, not to mention the time spent customising it.

    • @ruslansmirnov9006
      @ruslansmirnov9006 Před 9 měsíci +5

      this is not about saving time, this is about FEELING and ACTING as a professional, not as a person who simply types programming language statements into the editor; overall, this is about killing your mouse

    • @lorenzomizushal3980
      @lorenzomizushal3980 Před 9 měsíci +5

      @@ruslansmirnov9006 if you get paid to program you're a professional programmer. You don't need to try to be like a meme programmer, lol.

    • @Snollygoster-
      @Snollygoster- Před 9 měsíci +2

      The vim motions are the thing to learn, they're the bread and butter of it all and lots of editors include them because of how good they are. You don't actually need to "use vim" because I do agree the customization aspect of it can be rather tedious, but that has a different kind of value in doing it.

  • @VladyslavVolokitinXirex
    @VladyslavVolokitinXirex Před 9 měsíci +1

    What do you know about the nteract development environment? I tried to figure out how to work in it, but it never got to me. For working with notebooks it looks really cool. If you do a review, that would be really cool. Thanks for the video!

  • @walidmat8972
    @walidmat8972 Před 9 měsíci +1

    Amazing video as always ❤

  • @thedeparted_one
    @thedeparted_one Před 9 měsíci

    Thank you, NeuralNine! I have just noticed you moved to NvChad, right. That is NvChad, right?

  • @TheDavidlloydjones
    @TheDavidlloydjones Před 9 měsíci +5

    For boys who hope to grow up to use Emacs.

  • @ruslansmirnov9006
    @ruslansmirnov9006 Před 9 měsíci +10

    let us debunk
    0:00 the visual border between the status bar and the editor itself has left the chat; program menu? different font sizes for the editor and the bars? meh
    3:29 why there is no -o / -n option for the program being run? why creating a new file and opening an existing one is the same command? why? is it really so often being done that programmers actually save time by NOT typing -n? or -create?
    4:39 11:47 Control+Shift+Arrows has left the chat
    5:07 the Home/End keys have left the chat; Ctrl+End, too
    6:52 Ctrl+X in Notepad++ has left the chat
    8:53 13:37 macro recording in Notepad++ has left the chat; ability to use regexes for massive replacements without exiting the IDE witth the same file already opened, too
    9:40 column selection mode (Alt+LMB) in almost all modern editors and IDEs has left the chat
    11:57 Ctrl+' has left the chat
    12:19 customizable hotkeys in most 15:42 IDEs have left the chat
    overall, text mode 15:20 terminals were not designed for editing; they are for printing information to the user and inputting short system commands; they are TERMINALS; how about a full-screen mode in Vim? distraction-free mode? custom fonts? document map sidebar? changing colorsyntax theme on the fly? visually setting breakpoints? huh?

    • @Natural_Mindset
      @Natural_Mindset Před 9 měsíci +3

      Вот о чём я говорю! Вимы эти были актуальны, когда ещё толком мышек не было, и писали в основном на коленках на калькуляторах. Сейчас это абсолютный архаизм и извращение для красноглазиков

    • @ruslansmirnov9006
      @ruslansmirnov9006 Před 9 měsíci +2

      @@Natural_Mindset согласен и плюсую, с языка снял
      если точнее, то почти все что есть в Виме - продиктовано ограниченным машинным временем
      в 70-е инженер приходил на мейнфрейм, заранее записывался (за месяц) и ему, может быть, давали 15 минут поработать на институтском "супер-компьютере"

    • @MrEternalFool
      @MrEternalFool Před 9 měsíci +4

      Finally people fighting back against this nonsense.

    • @HypnosisBear
      @HypnosisBear Před 9 měsíci +2

      Finally someone with common sense! This comment is very much appreciated 👍

  • @thomasgoodwin2648
    @thomasgoodwin2648 Před 9 měsíci +9

    I suppose there might be some advantage in taking the time to learn Esperanto too, but honestly I can't think of any at the moment.
    Being just a country coder, and not having to prove my worth in the world of private professional enterprise, I find that I don't really need that level of mental investment (memorization is one of my most difficult mental tasks) to achieve my goals. If I were in such a competitive environment and living under time constraints it might be a different story.
    Further, neither VIM or EMACS really fit my style. I know this because in the (distant) past, we had to write our own text editors (including macros, undo, save, load, navigation...). (Writing a TEd is a great learning exercise as you will gain a full understanding of basic programming techniques as well as fundamental system interfaces.) In coding those I also gained a sense of my preferred editing style. Neither of those aforementioned editors is even close.
    These days I find IDEs have all the tools I need. Notepad is perfect for little jobs, and anything bigger just means I'm probably writing a script. Simple with minimal memorization required.
    Again, environment is probably an overriding factor, but for once I have to agree with the immortal words of Nancy Reagan-"Just say 'No!'".
    ❤ the content as always, even when I disagree (keeps me on my toes😉).

  • @msp99000
    @msp99000 Před 9 měsíci +3

    bro pair it with tmux to reach next level of multiple panes, sessions, shortcuts etc

  • @Ironpants57
    @Ironpants57 Před 9 měsíci +3

    I love vim! However I got so used to the keybinds.. Now, my brain wants everything in vim keybinds now lol.

    • @Chalisque
      @Chalisque Před 5 měsíci

      I know the feeling. A piece of advice I got from vimscript the hardway was to use jk as an alias for to exit edit mode. Now my fingers instinctivly type jk when I'm done editing something. Even in a textarea! jk

    • @Ironpants57
      @Ironpants57 Před 5 měsíci +1

      ​@@Chalisque It's a real problem lol. I have to remove ":wa" or ":w" from text areas at times

  • @randyriegel8553
    @randyriegel8553 Před 9 měsíci

    I love VIM especially for writing bash scripts or other simple scripts. But when I'm writing writing C# or something I use VS code in linux.

  • @dongyoblee2668
    @dongyoblee2668 Před měsícem

    Can you draft erd diagram? Does it have color picker to hex colors and rgba?

  • @ricardocantu
    @ricardocantu Před 9 měsíci

    Cool but, can I use vim in MATLAB?? 🙃

  • @arcanelore168
    @arcanelore168 Před 4 měsíci

    Should I buy a VIM book?

  • @swaleyrt
    @swaleyrt Před 9 měsíci

    Hey, when will you talk about the real company Cannafarm Ltd that brings profit?

  • @rotflol6666
    @rotflol6666 Před 9 měsíci

    pico is nano's big older brother

  • @lxathu
    @lxathu Před 9 měsíci +2

    If someone thinks programming seriously, they can't avoid learning regular expressions. But once someone knows how to deal with regular expressions, wasting vi(m)'s capabilities of manipulating text with only a few chararters is a sin and self-harm.

    • @ITSjustWOOL
      @ITSjustWOOL Před 9 měsíci

      What are you doing in software where you need to learn regular expressions? I've used them once in 7 years, and that was for a throwaway script fixing bad data. I worked out what I needed and forgot about it. Most times, I've seen them used it's generally been in a bad implementation of something

    • @lxathu
      @lxathu Před 9 měsíci

      ​@@ITSjustWOOL Processing output of programs (intermediate result, log, error, you name it), forcing and filtering the format of input, searching for files with guessable but uncertain content, flexibly refactoring code, writing network traffic rules against attacks (or preparations for attacking) - all these are typical areas where RE's win.
      Don't get me wrong: all these are possible without RE. They are """only""" pre-written text mangling algorithms in the background that are called with the RE's as special controlling parameters, after all. It's just a huge waste of time if someone invents the wheel and writes, tests, fixes (when the format of the data to process changes, re-writes, tests...) those mangling routines from scratch instead of formulate them using parameters called RE's.
      And the truth is: 80% of RE's you find around the web use the 20% of the language possibilities (and efficiency) of RE's and they are still life(time)-savers.

  • @theangelofspace155
    @theangelofspace155 Před 7 měsíci

    But... Do you use arch? 😊

  • @Chalisque
    @Chalisque Před 5 měsíci

    If I ssh to a remote machine. often vim and nano are the only options for editors.

  • @yeyintaung9837
    @yeyintaung9837 Před 9 měsíci

    As a bonus ,vim users can use vimium🎉

  • @nisidabay
    @nisidabay Před 9 měsíci +1

    I always use Vim, so it makes me sad to see that in all your videos, you hardly use it.

  • @Gigusx
    @Gigusx Před 5 měsíci +1

    On one hand, looks cool and you've shown some features that would maybe compel me to try and give Vim a try, on the other hand you completely oversold some things. In all or most of the modern IDEs you have keybinds for duplicating, deleting entire lines, copying portions of the lines, complex snippets (i.e. macros), selecting multiple lines, whatever, you name it. You don't just click once for every letter you want to move past, and a lot of it is customizable and extensible with your own or community plugins.
    Point being, you should have focused more on highlighting the features that really make Vim special and distinct instead of bashing on the way of doing things in other editors that people have long moved past from.

  • @xvsp8767
    @xvsp8767 Před 9 měsíci

    Wait, do you think cryptocurrency will crash? I dont think so. More and more companies are integrating cryptocurrency into their operations: Amazon, Cannafarm Ltd, Burger King, even Starbucks, dude!

  • @chrstfer2452
    @chrstfer2452 Před 6 měsíci

    Emacsers for evil represent

  • @Stopinvadingmyhardware
    @Stopinvadingmyhardware Před 9 měsíci +5

    No.
    Vin is terrible

  • @gastroesophagealreflux6285
    @gastroesophagealreflux6285 Před 4 měsíci +1

    This seems like overcomplicating things that are already simple.

  • @hannahprobably5765
    @hannahprobably5765 Před 9 měsíci +4

    emacs curve :D :D

  • @johnro
    @johnro Před 9 měsíci +1

    First

  • @falklumo
    @falklumo Před 9 měsíci

    vim sucks compared to emacs. End of story. And I use jetbrains tools anyway ...

  • @5SADH
    @5SADH Před 9 měsíci

    How 'bout you Should mind your business.

  • @allskillnoluck7734
    @allskillnoluck7734 Před 9 měsíci +5

    There are much simpler editors that are just as effective, if not more so, than VIM. To use VIM is to complicate your life for nothing.

    • @lorenzomizushal3980
      @lorenzomizushal3980 Před 9 měsíci +5

      But you kinda look cool using it. That's the most important selling point.

    • @randomrandom7167
      @randomrandom7167 Před 9 měsíci +2

      Nah it's not for looking cool, my wrist thanks me every day since I use vim
      And it's only one of the many benefits

    • @reggiedixon2
      @reggiedixon2 Před 9 měsíci

      I started with vi on POSIX in 1991, to me it is a muscle memory thing so when recently I had to use it again after nearly 30 years of being in the Windows environment I was pleasantly surprised how quickly the essentials came back. However I have to admit that the power of windows editors such as Ultraedit and Notepad++ blow it completely out of the water.

    • @Snollygoster-
      @Snollygoster- Před 9 měsíci +1

      Vim is a simple editor. Nano is a simple editor, Emacs is a simple editor.
      VSCode, is not a simple editor.
      Easy to use? Yeah probably.

    • @gale993
      @gale993 Před 7 měsíci +4

      Yeah, that's what the people who couldn't learn it usually say.

  • @clamato422
    @clamato422 Před 9 měsíci

    >$ diff /usr/bin/pico /usr/bin/nano
    >$

  • @jmjuyelahmed8462
    @jmjuyelahmed8462 Před 9 měsíci

    Wait, do you think cryptocurrency will crash? I dont think so. More and more companies are integrating cryptocurrency into their operations: Amazon, Cannafarm Ltd, Burger King, even Starbucks, dude!