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.
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.
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.
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!
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.
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.
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.
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.
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.
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
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!
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.
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!
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
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.
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!
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
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!
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 :)
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.
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
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!
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.
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.
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.
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?
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!
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
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!
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!
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.
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.
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.
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.
@@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! :)
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).
@@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.
@@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.
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
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
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!
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.
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.
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)
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 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.
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.
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.
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
@@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.
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!
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.
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!
@@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.
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
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!
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!
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.
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!
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.
Love it
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.
@@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.
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.
I use vim only in Linux...
30 seconds into the video and the video already taught me something ive been wanting to learn 👍i now know how to exit vim
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.
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!
@@joseanmartinez Oh you should ! Nvim is crazy!
@@joseanmartinez You should absolutely make the switch. It's awesome!
@@blessdarah1256 I’m planning on it!
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.
This got to be the best introduction to VIM I've ever seen so far on CZcams. Great job!
Really glad you enjoyed the video! Thanks for the awesome feedback, it made my day!
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.
Awesome! Thanks for all the info, love it!
D actually isn't Delete but Cut operator. So you can go back to Normal mode and paste the cut content with P! :)
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.
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!
Hey! It definitely does! One of my top reasons for using Vim. It makes things a little bit more fun for me.
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.
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.
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.
This is the best video about vim i've ever watched
Your comment made my day! Really appreciate it.
subscriber 1000th here
You made my day! 🙌🏽🔥
I really liked the editing 👍🏻
Thanks!
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
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!
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.
You convinced me to learn Vim again. Going to learn Vim.
7:51 Please! Great videos btw, love your aesthetics. Watching your videos makes me feel more engaged in coding.
Appreciate it, thanks!
Hey! What does font do you use in your terminal?, amazing video!
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!
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
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.
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!
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
Thanks! Working on it!
I really like your status line. I would love to see how you've configured it.
I’m planning on doing a walkthrough of my Vim setup/configuration soon!
Airline plugin
lualine works too
Perhaps you could make a cheatsheet of the configuration you have made as I would find it very helpful for learning your customizations.
Hey! I actually have a detailed guide on how I’ve configured Neovim here:
czcams.com/video/vdn_pKJUda8/video.html
That is a definitely good start for people who want to use vim.
i use vim for every thing
what about a separate video about diff-ing and merging with vim?
Man, you just convicted me to give VIM a try.
Nice introduction. THX
Me gusta la calidad de los videos! Keep it up man, hope to see more interesting projects. Brutal cuando veo el tag the PR!
Muchas gracias! Te agradezco el feedback y el apoyo! Siempre orgulloso de representar a PR.
Dude!
Your channel is amazing, very helpful.
Thanks!
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!
Hey! Thank you so much! It’s been crazy seeing the video grow and people’s feedback. Really appreciate it!
Would love to see a video of how you setup your vim environment. Thumbs up for the Channel!
Working on it! Thanks for the feedback, I really appreciate it!
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).
Hey! Yes, thanks! I switched from Vim to Neovim after making this video and remase my config for Neovim with lua from scratch.
Man I love your content, is INSANE!! 🚀
great editing and underrated channel
Thanks!
I think ThePrimeagen is proud of you, Josean 😉Very nice video!
Thanks! Appreciate that!
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 :)
Awesome!
Definitely need a video for setting up the vim. Great video man.
Thanks! I've been searching how to get it and this is brilliant :D
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.
Hmm... everything you just mentioned, vim can do it and do it excellently.
vim is smaller
Vim = kiss principal in action. IMO. 😉
The moment someone showcases Vim, I'm immediately convinced I definitely don't want to use it, interesting.
Good video for customization the zsh shell :-) Thank you.
Awesome,keep posting good stuff ❤️
Thanks!
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
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!
Oh I'm currently soldering a Corne split keyboard
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.
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.
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.
Hi I had made my neovim editor following your video. Greate one. BTW how can I change line numbers to that ">>" ??
can you provide me the link to the keyboard that you are using. It looks good
Nice tutorial.
Please make a video on how to install and setup vim!!!!!!!!!plz!!!!!!
Working on it!
personally i mostly prefer nvi to vim. i would use it exclusively if it had better support for multiple buffers
Vim even works on Android. There are two versions, Droid Vim and Vim/Neovim using your favorite terminal emulator.
That is so cool! I had no idea.
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?
Excellent man, this video made me learn many things I didn't knew.
I have one question, which keyboard is that? And is comfortable?
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!
yes it works brother ! many thanks
Been using vim for more than a decade and still counting
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
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!
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!
Great video, thanks!👍
Would you mind sharing your vijm color scheme and keyboard model? It looks like a Moonlander
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!
Thanks man!
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.
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.
what is the keyboard name? và how to set up key number to type quickly tip please
Great video!
I have vim on my iPad thru ish shell can I customize it there aswell
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.
I love vim and love the way you edit video. May I know where you learn it. Thanks
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.
Hello, I new to use VIM.. how make this kind of syntax colors??
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.
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.
@@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! :)
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).
@@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.
@@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.
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
Can you make a video on c++ setup
I don’t know why, but vim is my current only main code editor I am using;
Hey! great video, can you please tell me what keyboard are you using? it seems kinda productive to me
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
@@joseanmartinez Thanks a lot :)
I love your keyboard, did you build it yourself or is it some kind of brand?
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!
just awesome I subscribed :)
Hey! I really appreciate it! Thanks!
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.
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.
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)
Actually, the "best" (shortest) way to delete till the end of the line is Shift+D ^-^
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.
Why not just type in normal mode d$ ? A lot less key strokes, at least on an English language QWERTY layout.
@@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.
Great 👍👍👍
Why I Love Editing Videos By Changing Bytes.
Why would I want to count lines to go to a specific line when I could just click on it?
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.
for me vim is really unconfortable for exploring large projects with multiple files, specially c++ code
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.
Well, try creating ctags in vim . It could help
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
@@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.
using vscode's tooltips and extensions to cheat in programming exams/labs is pretty S tier tho
Please share the music used in your videos also please a video on how you make your videos your videos are awesome😄
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!
The most clean video about VIM I've seen.
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.
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!
@@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.
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
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!
I want to see the config and plug-in vid!
What is the name of the keyboard used?
Enough vim, what keyboard is that?
I like your keyword 🤩. Where can I buy it from?
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!
vim is nice and easy, just I don't know any other editors, using vim for over than 20 years.
good video! bring the music down a bit.
Thanks for the feedback! Appreciate it.
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.
Which layout do you Use?
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!
I love this video, can you tell me the name of the colorscheme?
Hey! Thanks! Happy to hear you enjoyed it! The theme is called nightfly!
@@joseanmartinez Thank you, I'm learning vim and you helped me so much
@@federicoromano9140 Really happy to hear that! Good luck learning Vim!
Where did you that awesome keyboard??!!!
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!
What color scheme are you using?
It's Nightfly! 7:23
Yes! Nightfly!
Whats the name of that keyboard. I need it!