Why I Love Using Vim To Write Code

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 335

  • @joseanmartinez
    @joseanmartinez  Před rokem +79

    Hey guys! For clarification, to exit Vim you do “:q” and then press “enter” and to exit without saving changes “:q!” and press “enter”. I wanted to also point out that Vim isn't for everyone and does require some effort, but it can be a pretty powerful tool to know how to use. You can also integrate Vim with VSCode and other modern editors as a plugin and it's an easier way to get started! I also switched to Neovim recently and have a video on setting it up if you’re interested.

    • @kaitro7
      @kaitro7 Před rokem +2

      Love it

    • @cdey3886
      @cdey3886 Před rokem +2

      I started using Vim (neovim) a few months ago, I am now a full Vim user and everytime I open VScode I feel like it takes foverever to load. The thing that was the hardest for me to get used to was the keybinds to move.

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      @@cdey3886 Yeah! Getting used to the keybindings takes some time, but eventually you stop having to think about them and it gets a lot easier.

    • @colbyboucher6391
      @colbyboucher6391 Před rokem

      Biggest thing for me is that managing complex Java environments in a terminal is just... meh. So I just stick to Vim binds in IDEs mostly.

    • @wahyono1739
      @wahyono1739 Před rokem

      I use vim only in Linux...

  • @kaitro7
    @kaitro7 Před rokem +36

    30 seconds into the video and the video already taught me something ive been wanting to learn 👍i now know how to exit vim

  • @yaanae
    @yaanae Před rokem +101

    I tend to use Neovim instead. It does everything that regular Vim does, but has some cool features such as lsp code completion and Treesitter, optionally configuration in Lua instead of Vimscript, and plenty more things. The plugin ecosystem is simply awesome!
    But yeah, just regular Vim is very well made. They're both very usable after some practice.

    • @joseanmartinez
      @joseanmartinez  Před rokem +16

      That’s awesome, thanks! I’ve been considering switching over to Neovim because of the benefits you’ve mentioned but haven’t done so yet, thanks for the info, sounds great!

    • @driden1987
      @driden1987 Před rokem +2

      @@joseanmartinez Oh you should ! Nvim is crazy!

    • @blessdarah1256
      @blessdarah1256 Před rokem +1

      @@joseanmartinez You should absolutely make the switch. It's awesome!

    • @joseanmartinez
      @joseanmartinez  Před rokem +4

      @@blessdarah1256 I’m planning on it!

    • @chrissaltmarsh6777
      @chrissaltmarsh6777 Před rokem +1

      It also works on wee tiny machines like an ARM-6 Raspberry pi-0. Not recommended if you want to run all the goodies (I cross-compile) but it will work fine for native editing.

  • @ya64
    @ya64 Před rokem +10

    This got to be the best introduction to VIM I've ever seen so far on CZcams. Great job!

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Really glad you enjoyed the video! Thanks for the awesome feedback, it made my day!

  • @patricioparadagutierrez7709

    I started with vim several years ago (maybe 10, can't recall precisely), but made the switch to neovim about 1 and a half years ago, mainly because VimL is a PITA to do complex things, and Lua is quite friendly and easier to read than VimL (and learning Lua have more benefits [outside vim ecosystem] than learning VimL, or the newest Vim9L). I know there are things that works better in vim than neovim, but for my daily use, I prefer neovim. And I totally agree with you: once you start "talking" vim, there is no way back to others text editors.

  • @anispinner
    @anispinner Před rokem +16

    D actually isn't Delete but Cut operator. So you can go back to Normal mode and paste the cut content with P! :)

    • @joseanmartinez
      @joseanmartinez  Před rokem +4

      Thanks for pointing that out! In general terms, the “d” key is traditionally referred to as the delete operator, which helps to remember it easily. You’re right in that the “d” operator and also the “c” and “y” operators all copy text (store it in a register) and you can paste that text afterwards.

  • @NathanJonesM
    @NathanJonesM Před rokem +2

    I totally know what you mean when you say vim feels like a game! Mastering a new motion or technique is a great feeling. Thanks for the great videos!

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! It definitely does! One of my top reasons for using Vim. It makes things a little bit more fun for me.

  • @carlos-ek3jp
    @carlos-ek3jp Před rokem +4

    Eu gosto muito do LuarVim que é um editor de texto baseado no vim com suporte a linguagem lua e com binários mais atualizados, eu recomendo o luarvim, mas quando eu instalei o meu primeiro Linux(archlinux 2022), eu usei o vim, parabéns ao Josean Martines pelo vídeo, ainda mais que não é comum encontrar canais de conteúdo apresentando os pontos positivos do vim parabéns.

  • @xsukk
    @xsukk Před rokem

    Learnt vim command immediately after finding right arm hurts, to avoid moving it for mouse. Now using VS Code vim extension and edge extension, vim has become far more than the editor itself.

  • @urinara1
    @urinara1 Před rokem +5

    I am a 20+ years Vim user. Recently, I started using vim inside VS Code terminal for both local and remote ssh and it became my new standard.

  • @Redyf
    @Redyf Před rokem +1

    This is the best video about vim i've ever watched

  • @tambui3603
    @tambui3603 Před rokem +2

    subscriber 1000th here

  • @ziadnahlawi
    @ziadnahlawi Před rokem +4

    I really liked the editing 👍🏻

  • @bewky
    @bewky Před rokem +1

    been using vim for a few years now and can now say i've been using it wrong the whole time lmao one thing that is control+v to select a single character in visual mode, then you can scroll up and down to affect many lines with the same text, like comments for example

  • @iamaperson12345
    @iamaperson12345 Před rokem

    You're super underrated. I hope your high effort in content creation gets you where you want to go. I'm just starting to configure Nvim, and your tutorials and repository are tremendously helpful. Thank you!

  • @lmnts556
    @lmnts556 Před rokem

    And that is exactly why everyone who does any terminal or remote work should have a vim/nvim config set up. I use vscode and nvim, vscode regularly but nvim if I am doing a lot of terminal/remote based work.

  • @eroScorp12
    @eroScorp12 Před rokem

    You convinced me to learn Vim again. Going to learn Vim.

  • @relaxingbuddy4363
    @relaxingbuddy4363 Před rokem +1

    7:51 Please! Great videos btw, love your aesthetics. Watching your videos makes me feel more engaged in coding.

  • @ovct8117
    @ovct8117 Před rokem +3

    Hey! What does font do you use in your terminal?, amazing video!

    • @joseanmartinez
      @joseanmartinez  Před rokem +3

      Appreciate it! I’m pretty sure I’m currently using Meslo Nerd Font which is default for my theme (powerlevel10k). I’m working on a video on my terminal configuration, should be my next upload. Thanks for the feedback!

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

    My main code editor stopped working on my PC (No window pops up), so now I'm stuck searching for code editors that seem interesting to me (I do web dev, which, I can use any code editor for, but I'm kinda picky and don't wanna use VS Code), and I've been looking at VIM for a few days, and I might go with that

  • @Michael-Martell
    @Michael-Martell Před rokem +1

    When you just got your 1st front end gig. Learning Colmak, while learning ortho split layout/layers, while learning vim. I’m never gonna get anything done.

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      That sounds like a big undertaking! I learned Vim first while in college, and about a year and a half later added a split keyboard and learned how to use it with layers and loved it. Haven’t changed from Qwerty yet though. I’ve had to space things out because it would have been too overwhelming to learn everything at the same time and that’s what I would recommend. Adopting things over time might help you learn them better and more easily. Good luck and congrats on your first gig!

  • @robingundlach6720
    @robingundlach6720 Před rokem +2

    I would love to see your exact customization of vim and the plugins, thanks for the great video it is really a good starting point if you never have used vim

  • @GoopBlue
    @GoopBlue Před rokem +5

    I really like your status line. I would love to see how you've configured it.

  • @legatto
    @legatto Před rokem +2

    Perhaps you could make a cheatsheet of the configuration you have made as I would find it very helpful for learning your customizations.

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Hey! I actually have a detailed guide on how I’ve configured Neovim here:
      czcams.com/video/vdn_pKJUda8/video.html

  • @EuCaue1
    @EuCaue1 Před rokem

    That is a definitely good start for people who want to use vim.

  • @kamalchan9756
    @kamalchan9756 Před rokem

    i use vim for every thing

  • @megasuperlexa2
    @megasuperlexa2 Před rokem +1

    what about a separate video about diff-ing and merging with vim?

  • @ssa4910000
    @ssa4910000 Před rokem

    Man, you just convicted me to give VIM a try.
    Nice introduction. THX

  • @MrJAN05
    @MrJAN05 Před rokem +1

    Me gusta la calidad de los videos! Keep it up man, hope to see more interesting projects. Brutal cuando veo el tag the PR!

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Muchas gracias! Te agradezco el feedback y el apoyo! Siempre orgulloso de representar a PR.

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

    Dude!
    Your channel is amazing, very helpful.
    Thanks!

  • @ahmedsaadsabit1749
    @ahmedsaadsabit1749 Před rokem

    This video fucking blew up, I knew it, I saw it when it had like 200 views, and it was small channel but it was in my reco. Glad it did well, keep it up!

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! Thank you so much! It’s been crazy seeing the video grow and people’s feedback. Really appreciate it!

  • @drogokhan
    @drogokhan Před rokem +1

    Would love to see a video of how you setup your vim environment. Thumbs up for the Channel!

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Working on it! Thanks for the feedback, I really appreciate it!

  • @danielstoddart
    @danielstoddart Před rokem +1

    Looks like your Neovim config has gotten a lot more refined in the short time since you made this video (no longer using NERDTree, for instance).

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! Yes, thanks! I switched from Vim to Neovim after making this video and remase my config for Neovim with lua from scratch.

  • @zohanrow
    @zohanrow Před 3 měsíci

    Man I love your content, is INSANE!! 🚀

  • @skadoooodle
    @skadoooodle Před rokem +1

    great editing and underrated channel

  • @andi1984dev
    @andi1984dev Před rokem

    I think ThePrimeagen is proud of you, Josean 😉Very nice video!

  • @cameronball3998
    @cameronball3998 Před rokem +1

    Wow, I’m convinced. I’ve always known the very very basics of vim and I use vimari for navigating Safari with my keyboard but have never seen it used with plugins and tools. SO-I’m convinced. Will be switching asap, thanks :)

  • @anuragpramanik6095
    @anuragpramanik6095 Před rokem

    Definitely need a video for setting up the vim. Great video man.

  • @shogaartx8643
    @shogaartx8643 Před rokem

    Thanks! I've been searching how to get it and this is brilliant :D

  • @saschakehrli2496
    @saschakehrli2496 Před rokem +3

    emacs incorporates the vim keybindings with evil mode while offering insanely well designed modules like lsp, dired, different shells, magit. I don't see why one would choose vim over emacs.

  • @D-V-O-R-A-K
    @D-V-O-R-A-K Před rokem

    The moment someone showcases Vim, I'm immediately convinced I definitely don't want to use it, interesting.

  • @aphirakjansang431
    @aphirakjansang431 Před rokem

    Good video for customization the zsh shell :-) Thank you.

  • @deekshith3238
    @deekshith3238 Před rokem +2

    Awesome,keep posting good stuff ❤️

  • @antoinem1396
    @antoinem1396 Před rokem

    A lil' fact I discovered few weeks ago, is the possibility to go into a file to a specific line.
    You just have to type : "vim path/of/my/file +X" X egals to the line you want your cursor. :D

  • @JoelSilva-gk4hq
    @JoelSilva-gk4hq Před rokem +3

    Hey thank you for this awesome video. I also watched your video about you split keyboard and I noticed that you put your numbers 1-5 and 6-0 on the lower layer of your left keyboard.. can you share more about your layouts? Sorry if you've already talked about it in another video!

    • @JoelSilva-gk4hq
      @JoelSilva-gk4hq Před rokem

      Oh I'm currently soldering a Corne split keyboard

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Hey! That’s awesome you’re building a Corne, I’m thinking about building one sometime in the future, it looks awesome! Yes, I have my number keys on a separate layer in my left keyboard for easier access as well as most symbols on that same layer. It took a while to get used to, but works great for me now. I’ll see if I can prepare something to share the layout I currently have for my keyboard layers.

  • @caseyalanjones
    @caseyalanjones Před rokem

    Well done! I have always wanted a video like this with which I could introduce people to the basic idea of vim. This is the best one I've seen so far.
    There are so many others out there, but they tend to be too long and rambly while still somehow not getting the core idea across.
    This is also very nicely edited and aesthetically appealing.
    I love for example how you overlaid the vim window with some transparency, showing your desk in the background.
    Awesome keyboard too! Which is that? I have a Mitosis, which is very similar to yours, but not quite identical.

  • @chrissaltmarsh6777
    @chrissaltmarsh6777 Před rokem +1

    I started with Bill Joy's vi - late-1980's I suppose. The thing that got me was how well it was designed to do what was needed.- mostly edit, not write. You type in code, then find out what you did wrong.
    Now I use neovim with all the goodies, but that muscle memory is still there.

  • @roshanpaudel6352
    @roshanpaudel6352 Před rokem

    Hi I had made my neovim editor following your video. Greate one. BTW how can I change line numbers to that ">>" ??

  • @harshitraj2762
    @harshitraj2762 Před 7 dny

    can you provide me the link to the keyboard that you are using. It looks good

  • @razvbir
    @razvbir Před rokem +2

    Nice tutorial.

  • @farhanislam4835
    @farhanislam4835 Před rokem +1

    Please make a video on how to install and setup vim!!!!!!!!!plz!!!!!!

  • @kittyfangz5262
    @kittyfangz5262 Před rokem +1

    personally i mostly prefer nvi to vim. i would use it exclusively if it had better support for multiple buffers

  • @danielnolan8049
    @danielnolan8049 Před rokem

    Vim even works on Android. There are two versions, Droid Vim and Vim/Neovim using your favorite terminal emulator.

  • @rodolfo-romero
    @rodolfo-romero Před rokem

    I've been following your videos and I appreciate how informative they are. I wanted to setup vim to use the same status bar that you have but I'm not sure which plugin you used for this and how you set it up with those colours. Do you have another video or blog post with that info?

  • @ShuHikari
    @ShuHikari Před rokem

    Excellent man, this video made me learn many things I didn't knew.
    I have one question, which keyboard is that? And is comfortable?

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Hey! Thanks! Glad you enjoyed the video! I really enjoy using my keyboard and find it to be really comfortable. It’s actually custom built. It’s called an Iris Rev4 and most of the parts are from keeb.io. There are newer versions now. I have another video about my experience with it and the process of building it in case you’re interested!

  • @zhannerrull5974
    @zhannerrull5974 Před rokem

    yes it works brother ! many thanks

  • @pencilcheck
    @pencilcheck Před rokem

    Been using vim for more than a decade and still counting

  • @ChilenonetoYoutube
    @ChilenonetoYoutube Před rokem

    Very cooll until you use some different to english keyboar distribution, that put :, / and other on arcane combination ... so to get / you have to press shift+7 in spanish macbook , adding complexity to the keystrokes... you can kaybind to other simpler, but that gets you out of avery tutorial out there

  • @pepsiplease69
    @pepsiplease69 Před rokem

    To exit vim you need to do :q
    I think you mentioned :Q I believe this will not exit vim.
    If you want to force quit with saving you do :q!

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      You’re right! I forgot to mention you have to press the enter key to execute the command and I should have written “q” instead of “Q”. Thanks for pointing that out!

  • @Thomas_Grusz
    @Thomas_Grusz Před rokem

    Great video, thanks!👍

  • @aryklein
    @aryklein Před rokem +1

    Would you mind sharing your vijm color scheme and keyboard model? It looks like a Moonlander

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Hey! I use nightfly for the color scheme and the keyboard is called an Iris Rev4. I custom made it. It's from keeb.io. I actually have another video on how I built it in case you're interested!

    • @aryklein
      @aryklein Před rokem +1

      Thanks man!

  • @babakjan
    @babakjan Před rokem

    Did you try vim extension for vs code or jetbrains ides? Why don't you use it? It offers both - vim experience and ide benefits.

  • @LUN-bo2fb
    @LUN-bo2fb Před rokem +5

    if people is working on backend, vim is definately a must to learn. there's no so many options. vim is far superior than other editor like nano
    for development, I always use vim binding in every editor(emacs, vscode)
    I switch to vscode because it's language extentions are usually more mature.

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

    what is the keyboard name? và how to set up key number to type quickly tip please

  • @tiagodejesus456
    @tiagodejesus456 Před rokem

    Great video!

  • @bobsisic5714
    @bobsisic5714 Před rokem

    I have vim on my iPad thru ish shell can I customize it there aswell

  • @rottenapple7373
    @rottenapple7373 Před rokem

    Vim is also good for making use of that 350$ keyboard one just had to have. It's worth the learning curve either way though.

  • @hoangtran-ek8mn
    @hoangtran-ek8mn Před rokem

    I love vim and love the way you edit video. May I know where you learn it. Thanks

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Thanks! Really appreciate it! When it comes to the editing, youtube has been a good resource for tips and tricks, but practicing often is what has helped me the most.

  • @MikePiano83
    @MikePiano83 Před rokem

    Hello, I new to use VIM.. how make this kind of syntax colors??

  • @DavidStruveDesigns
    @DavidStruveDesigns Před rokem +3

    I wonder why they settled on using H,J,K & L for moving cursor around instead of W,A,S & D or even the arrow keys - which _seem_ to be a more logical choice considering if you've ever played a game with movement ... ever ... those are the keyboard keys most commonly used?? Especially if they'd used the arrow keys that would free up four more lettered keys for other commands/shortcuts.

    • @joseanmartinez
      @joseanmartinez  Před rokem +4

      That’s a good question! It’s pretty crazy to be honest. It dates back to when Bill Joy created Vi, Vim’s predecessor back in 1976. The computer terminal he was using had a keyboard with the arrow keys printed on the “hjkl” keys so he just went with that and the rest is history. You would think the explanation would be for more practical or ergonomic reasons, but not really. Fortunately, these keys are on the home row and they are really easy to reach, the pain is learning to get used to them for sure. You could even remap them if you really wanted to, but then you would have to think about what keys would they replace and if those were used for other commands and whether it’s acceptable to have your version of vim be different from any other version you encounter when logging into another machine.

    • @DavidStruveDesigns
      @DavidStruveDesigns Před rokem +2

      @@joseanmartinez Huh, so it actually _was_ using the arrow keys after all - in the beginning. I get why they didn't change it, people would already be totally used to using those keys by then and the alternatives likely already had other mapping as you say. Interesting! I've actually _seen_ a couple of very old keyboards with the arrow keys on those keys too (I might have even used one in the late 80s into the 90s), I dunno why I didn't make the connection! Makes total sense now, thanks! :)

    • @DavidStruveDesigns
      @DavidStruveDesigns Před rokem +1

      Also, I didn't know the software was _that_ old - impressive it's still around and was able to be updated all the way up to modern day. That's cool! If I'd realised it's age I would have known why no mouse input - the mouse hadn't been invented yet when it was made!! (and why bother adding support later when it wasn't actually needed?) Heck even when I started using computers I had almost a decade to wait for the mouse to arrive (my first computer was a BBC Micro from Acorn Computers in the UK).

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      @@DavidStruveDesigns That’s really cool you might have even used one of them! It’s crazy how some things come to be, makes me think about keyboard layouts and how they date back to the typewriter’s mechanics and people getting used to them back then. Thanks for the question, really interesting.

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      @@DavidStruveDesigns Wow! So cool. Yeah Vim and its predecessor, Vi, have a pretty long history and its pretty cool to see it being pretty popular to this day in spite of its age. I’m pretty sure I’m switching to Neovim soon which is a bit more modern option.

  • @prudhvi5313
    @prudhvi5313 Před rokem

    its good if all you use a single file to dump your entire code in, but that's rarely the case in any SDLC. Projects consists of multiple modules and each one is split into Resources, services, adapters, Dao classes etc.., Good luck doing all this using VIM :P

  • @thewhizhub5715
    @thewhizhub5715 Před 21 dnem

    Can you make a video on c++ setup

  • @aeebeecee3737
    @aeebeecee3737 Před rokem

    I don’t know why, but vim is my current only main code editor I am using;

  • @shreyasshivakumar8578

    Hey! great video, can you please tell me what keyboard are you using? it seems kinda productive to me

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Hey! Thanks! It’s a split mechanical keyboard called an Iris Rev4 from keeb.io. I actually built it! There are newer versions now. I have a video about my experience with it and specifics as to what went into making it in case you’re interested! Here’s the link:
      czcams.com/video/4YZ0PWvIXGY/video.html

    • @shreyasshivakumar8578
      @shreyasshivakumar8578 Před rokem

      @@joseanmartinez Thanks a lot :)

  • @navakelvin
    @navakelvin Před rokem

    I love your keyboard, did you build it yourself or is it some kind of brand?

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! Thanks! Yes, I built it. It’s called an Iris Rev4 and it’s from keeb.io. There are newer versions now. I actually have a another video about how I made it if you want to learn more!

  • @wjffhfgj7045
    @wjffhfgj7045 Před rokem

    just awesome I subscribed :)

  • @thedigitalceo
    @thedigitalceo Před rokem

    Is there a way to highlight some text and then in a few clicks highlight all instances of that text throughout the document and then start typing to edit all instances in one shot. This feature is priceless in VS code.

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! I think you’re referring to using multiple cursors? I believe you can use vim plugins that add this functionality, but I’m not very knowledgeable on it. Good point! That’s a pretty cool feature you get out of the box with VS Code.

  • @xGshikamaru
    @xGshikamaru Před rokem

    I use intelliJ at work, it's a heavy beast, but it gets the job done for coding, but when I'm sshing to a machine and have to edit files that are millions of lines long vi (yes, not vim because syntax highlighting makes it unusable on such large files) is a life saver. I've been using vim at home for years, but now I'm missing some of the things that I got spoiled with in IntelliJ. Things like refactor -> rename that impact every usage of a function in my whole project. Does that kind of thing exist with neovim ? I use awesome as my WM so Lua config is something that attracts me but I'm on the fence about changing my editor (and also off topic I'm considering changing from urxvtd/urxvtc to alacritty as well to benefit from true colors and GPU acceleration)

  • @braknazwy1530
    @braknazwy1530 Před rokem +1

    Actually, the "best" (shortest) way to delete till the end of the line is Shift+D ^-^

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Thanks for the tip! That’s what I love about Vim! The example I used was primarily to illustrate the concept of operators + motions, but there are tons of more efficient ways to do the same thing.

    • @donaldmickunas8552
      @donaldmickunas8552 Před rokem

      Why not just type in normal mode d$ ? A lot less key strokes, at least on an English language QWERTY layout.

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      @@donaldmickunas8552 Well Shift+D is pretty quick too, it depends on what method you prefer using and find easier, I tend to do “d$” because I’m used to it.

  • @narisornsamukkarn1747

    Great 👍👍👍

  • @darraghd493
    @darraghd493 Před rokem +1

    Why I Love Editing Videos By Changing Bytes.

  • @DanEllis
    @DanEllis Před rokem

    Why would I want to count lines to go to a specific line when I could just click on it?

    • @joseanmartinez
      @joseanmartinez  Před rokem

      In and of itself it’s not that impressive. Its power comes mostly when you combine movements like these with other editing related actions in order to get things done quickly. For example, I could use “d5j” to delete 5 lines down, “5jdd” to move 5 lines down and delete the 5th line below the cursor or do “5jdi{“ to move 5 lines down and delete everything within curly braces (assuming there is a code block 5 lines below the cursor). This also applies to other actions like copying text for example as well as the overarching notion that you combine movements with editing tasks to do things efficiently within Vim. Hope this provides some further clarity.

  • @alexsimper4153
    @alexsimper4153 Před rokem +10

    for me vim is really unconfortable for exploring large projects with multiple files, specially c++ code

    • @joseanmartinez
      @joseanmartinez  Před rokem +3

      That’s understandable. In my case, the plugins I use like FZF.vim really help me with navigation and exploring large projects and have made it a lot easier.

    • @raghavaritti8973
      @raghavaritti8973 Před rokem

      Well, try creating ctags in vim . It could help

    • @furo.v
      @furo.v Před rokem +4

      vim is uncomfortable for everything in my opinion. Use VSCode or any proper editor.
      Practicing VSCode (shortcuts, etc) makes you faster than a vim expert

    • @yhevrah
      @yhevrah Před rokem +8

      @@furo.v I don’t think mastering VSCode shortcuts will make you faster than a true vim expert. Unless you use a vim plugin on top of that vscode. Not to mention the text manipulation powers, cursor movement alone is arguably much faster. In vim, instead of arrow keys, movement is done using keys already in the home row.
      I’ve been using vim plugins on all of my IDEs just because of this alone ever since I started programming for almost a decade now. But seeing all the recent advancements in neovim, LSPs, DAPs etc. I switched to neovim entirely. Probably one of the best decision I’ve done. Also kinda regret that I didn’t get to jumped on it earlier tbh.
      I would go far as to say that, If one is going to take programming really seriously, eventually they’ll end up with terminal-based editor like vim or emacs.

  • @memeperor_
    @memeperor_ Před rokem

    using vscode's tooltips and extensions to cheat in programming exams/labs is pretty S tier tho

  • @krisharyan8349
    @krisharyan8349 Před rokem

    Please share the music used in your videos also please a video on how you make your videos your videos are awesome😄

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      I use Epidemic Sound for my music! Not sure when I'll be able to get to it, but I'll add a BTS video to the list. Thanks for your feedback, really appreciate it!

  • @alcebiadesogamas
    @alcebiadesogamas Před rokem

    The most clean video about VIM I've seen.

  • @Brian2986
    @Brian2986 Před rokem

    You should give Kakoune a try. It's much the same as VIM, but instead of action -> selection, it does selection -> action. That way you can see what text will be manipulated by your action.
    Like say you want to delete to the end of a word.
    In Vim you press d (delete) and then e(end) to delete to the end. Of course you know this, but there isn't any visual feedback.
    In Kakoune you press e and you can now see that your selection goes to the end of the word. You then press d to delete.
    Another cool thing in Kakoune is you can extend your selections by holding down shifts, so once you have selected to the end of the first word, you can hold down shift and press e again to extend it to the end of the next word. (Selecting backwards uses the ALT modifier instead of shift in case you are wondering.)
    I think it makes much more sense.

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Very interesting! Thanks for the info, I hadn’t heard of Kakoune before! What you describe reminds me of Vim’s visual mode where you move to make selections and then perform actions on your selection. Appreciate all the information on Kakoune, pretty cool!

    • @Brian2986
      @Brian2986 Před rokem

      ​@@joseanmartinez I've heard some people describe it as permanent being in Vim's visual mode. You should definitely give it a try. Vim is really great, but I can't recall a single person having switched back to it after having familiarized themselves with Kakoune.

  • @livb4139
    @livb4139 Před rokem +3

    Hate to be that guy but this is more of a "vim basic tutorial" rather than reasons why you like to use vim. I expected some strong arguments comparing it to other text editors or ides rather than a getting started tutorial

    • @joseanmartinez
      @joseanmartinez  Před rokem +2

      Thanks for the feedback. I understand where you’re coming from. For me personally, Vim’s basic principles and how far these basic ideas can take you (by making coding a natural extension to your thought process) is one of the primary reasons I choose and love to use Vim so I wanted to give a general overview on it for those who were uninitiated and new to the editor in order to get that point across. Maybe I could have been clearer on that. This of course goes along with my other reasons for using Vim like its customizability, how lightweight it is and easy to find on most systems, and how fun it has made coding for me. I don’t think Vim is the end all be all editor and it certainly isn’t for everyone, but it’s what I enjoy to use, even if it’s as a plugin inside another modern editor. Thanks for the feedback and checking out the video!

  • @franmontaldo
    @franmontaldo Před rokem

    I want to see the config and plug-in vid!

  • @user-xl6ol1hr6u
    @user-xl6ol1hr6u Před rokem

    What is the name of the keyboard used?

  • @joxa6119
    @joxa6119 Před rokem

    Enough vim, what keyboard is that?

  • @sajedsoliman4780
    @sajedsoliman4780 Před rokem

    I like your keyword 🤩. Where can I buy it from?

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Hey! Thanks! It’s actually custom built. It’s called an Iris Rev4 and the parts are mostly from keeb.io. There are newer versions now. I have a video on my experience with it and more on the process of making it in case you’re interested!

  • @alexal4
    @alexal4 Před rokem +1

    vim is nice and easy, just I don't know any other editors, using vim for over than 20 years.

  • @hawkdykes9054
    @hawkdykes9054 Před rokem +1

    good video! bring the music down a bit.

  • @MarkusBurrer
    @MarkusBurrer Před rokem

    My problem with vim is that the key commands are designed for qwerty. hjkl are more or less useless for me because they are scattered around my keyboard and other keys like everything on the right like () and [] are on a separate layer.

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz Před 6 měsíci

    I don't get it why I need HJKL if I have the cursor (a sense CROSS that my brain already understand what is up left righ and now), whats the benefit of a line: HJKL, don't make sense!

  • @federicoromano9140
    @federicoromano9140 Před rokem

    I love this video, can you tell me the name of the colorscheme?

    • @joseanmartinez
      @joseanmartinez  Před rokem +1

      Hey! Thanks! Happy to hear you enjoyed it! The theme is called nightfly!

    • @federicoromano9140
      @federicoromano9140 Před rokem

      @@joseanmartinez Thank you, I'm learning vim and you helped me so much

    • @joseanmartinez
      @joseanmartinez  Před rokem

      @@federicoromano9140 Really happy to hear that! Good luck learning Vim!

  • @javifontalva7752
    @javifontalva7752 Před rokem

    Where did you that awesome keyboard??!!!

    • @joseanmartinez
      @joseanmartinez  Před rokem

      Hey! I actually made it! It's called an Iris Rev4 from keeb.io. There are some newer versions now. I have a video on it in case you're interested!

  • @abrarmasumabir3809
    @abrarmasumabir3809 Před rokem +1

    What color scheme are you using?

  • @patrickkhwela8824
    @patrickkhwela8824 Před rokem

    Whats the name of that keyboard. I need it!