Vim Tutorial

  Рет қаралды 567,629

Ben Awad

Ben Awad

Күн бұрын

Пікірлер: 597
@shreym03
@shreym03 3 жыл бұрын
2:10 Opening VIM 2:59 Exiting VIM 4:15 Save without quitting 4:25 Move with h,j,k,l 4:55 Going into insert mode 5:05 Going back to command mode 5:11 dd for delete line 5:40 Use arrow keys to move (not recommended) 6:00 G and gg for top and bottom lines 6:46 {,} to skip blocks of code 7:30 Using numbers to loop command 8:20 u for undo and redo 9:22 Cntrl+r for redo 10:05 yy for copying line 10:17 p for pasting line below 10:24 P for pasting line above 10:44 using dd to cut a line for pasting 11:24 use V for visual line mode to select lines 11:55 Do stuff with selected lines 12:15 o for inserting the new line below 12:45 O for inserting new line above 13:30 d+ to delete characters 14:55 w to jump forward words and b to jump backward 15:25 : to jump to specific line 16:01 0 for the beginning of the line and $ for the end of the line. 16:10 ^ for beginning word 16:40 W for jumping forward a word (ignore punctuation) 17:50 t+ and f+ to go to specific character in a line 18:22 % to go to specific block parenthesis 20:05 c+ for changing characters 21:01 D to delete from cursor to end of line 23:44 * to search for other instances 25:27 ; to go to the next instance of a character when using t,f 26:11 zz to center your page based on the cursor's position 27:10 a to insert from the right of the character, i to insert from left 27:36 A to insert from the end of the line, I to insert from the beginning of the line 27:52 x to delete a character which cursor is on 28:34 ~ to change the case of a letter 29:32 . to repeat the last executed command 33:01 r to replace a letter, R to go to replace mode 34:34 Commend combo to move a chunk of code from bottom to top 36:11 Commend combo to wrap a chunk of code 36:48 >> to indent line,
@shreym03
@shreym03 3 жыл бұрын
This is a great tutorial but since it is quite long I thought I'd note timestamps. If I missed something or I can word any of these better, let me know in the comments
@fokkedeboer2342
@fokkedeboer2342 3 жыл бұрын
Underrated comment
@shreym03
@shreym03 3 жыл бұрын
@@fokkedeboer2342 thanks. I made it recently.
@mohamedirfan2816
@mohamedirfan2816 3 жыл бұрын
This is really helpful bro, Thank you so much
@abdarafi
@abdarafi 3 жыл бұрын
I just manually searching the timestamp of the video if I forgot the vim command :( It's been 2 years up until and I found this comment is super useful. Finally! Thank you so much :)
@jex8885
@jex8885 3 жыл бұрын
As a regular Vim user, the key thing about Vim is that it doesn't have what you consider "keybinds", it has a dialect where you tell Vim what you want to do. All the keys involved are words to build a sentence telling Vim what you want to do. Don't memorize the complex commands, memorize the keywords in the dialect and you should have an easier time in Vim. d3w : Delete 3 word(s) y3w : Yank/Copy 3 word(s) 3p : Put/Paste 3 (times) dt" : Delete To " 3j : 3 lines down di": Delete inside "..." dG: Delete to the bottom of the file Final suggestion, don't copy someone's config, build your own and add things when needed to get a better understanding, in addition to being more prepared for using it in server environments where nothing is configured.
@ThePandaGuitar
@ThePandaGuitar 3 жыл бұрын
This is the best comment I've read about Vim. When you have this perspective, you won't fight with Vim anymore and it will start feeling natural.
@zaheeruddinfaiz7064
@zaheeruddinfaiz7064 3 жыл бұрын
That's a nice perspective.
@小鳥ちゃん
@小鳥ちゃん 2 жыл бұрын
Yeah, that fits my mindset so nicely, I think I may really love Vim
@jperkinsdev
@jperkinsdev 2 жыл бұрын
Thank you for the perspective
@arielllanita7174
@arielllanita7174 2 жыл бұрын
Well said
@lanorothwolf2184
@lanorothwolf2184 4 жыл бұрын
This is what learning how to tie shoelaces as an adult must feel like
@rivubardhan6376
@rivubardhan6376 3 жыл бұрын
Learning is just learning. Its nothing more than that. If you are ashamed of learning I would like to say go change your mentality.
@ayeansh
@ayeansh 3 жыл бұрын
@@rivubardhan6376 A Joke is just a joke. Its nothing more than that. If you are offended at a joke I would like to say go change your mentality.
@JasonGarcia24
@JasonGarcia24 3 жыл бұрын
kzbin.info/www/bejne/p37VmZdsZtFnfNk
@joefuentes2977
@joefuentes2977 3 жыл бұрын
When I first discovered vim i thought something was terribly wrong with the program.
@oussamakhalfi1751
@oussamakhalfi1751 3 жыл бұрын
@@ayeansh xxx
@bagoquarks
@bagoquarks 4 жыл бұрын
The mission-critical feature of this video is the display of the keystrokes in a large font. Well done.
@gonzalochristobal
@gonzalochristobal 5 жыл бұрын
i tried vim before, and i looked into some vim commands, but watching them in action and with some use-cases is just way better for learning, of course i will not learn everything by the end of this video, but just knowing that those commands exists is so helpful thanks man!
@dawid_dahl
@dawid_dahl 3 жыл бұрын
(I recommend everyone to try relative line numbering. It will give you absolute superpowers. For example, instead of going up and down the screen with j and k repeatedly, you just look where you want to go, enter the amount of steps needed (which is visible directly on the screen without needing to do any math), then just press j or k one time. It is magic!)
@user-st4qv2vw7q
@user-st4qv2vw7q 3 жыл бұрын
That explains why Ben did it in his nvim config file
@jiyometrik
@jiyometrik 3 жыл бұрын
I use hybrid numbering - current line shows its absolute line number, the other lines show the relative line numbers. Helps a lot.
@ajfromAZ
@ajfromAZ 5 жыл бұрын
You don't dig holes with bulldozers.
@StephenRayner
@StephenRayner 5 жыл бұрын
Hahaha, yea but you know he means excavator
@abhinandanj8182
@abhinandanj8182 5 жыл бұрын
Never caught that. Lol though
@becausewin
@becausewin 4 жыл бұрын
@@secwriteups completely lost it when he said this
@simopr09
@simopr09 4 жыл бұрын
he meant filling up a hole with a shovel or a bulldozer :p
@AlessanderEspinoza
@AlessanderEspinoza 4 жыл бұрын
I came to the comments just to see if someone caught this.
@333peacher4
@333peacher4 4 жыл бұрын
Best vim presentation I have seen: Font size and keycast just about right, and the warm sexy voice, nice and slow.
@anshul9856
@anshul9856 3 жыл бұрын
bruh this is a programming vid not an erotica
@user-yn6ii7ys3u
@user-yn6ii7ys3u 3 жыл бұрын
gay
@thedeveloper4207
@thedeveloper4207 5 жыл бұрын
I started using Vim because of you
@zeocamo
@zeocamo 5 жыл бұрын
if you want to format code select the code with shift+v and hit = to make the code perfect.
@Nathanwithz
@Nathanwithz 4 жыл бұрын
I like to use gg=G
@zeocamo
@zeocamo 4 жыл бұрын
@@Nathanwithz yes that nice to .. i map it to ,= in my vimrc
@lucianobarletta8283
@lucianobarletta8283 4 жыл бұрын
I love this one
@reveluv8851
@reveluv8851 3 жыл бұрын
@@zeocamo nnoremap = gg=G is a better map as it returns you to your previous location
@zeocamo
@zeocamo 3 жыл бұрын
@@reveluv8851 ok, i got a almost like that too(i pickup a few things in the 18 years i use vim), but i was talking about a block of code here
@LHFsmileface
@LHFsmileface 5 жыл бұрын
Ben, i actually started using vscode's vim plugin at work cuz of you. Thank you from Brazil !
@thedeveloper4207
@thedeveloper4207 5 жыл бұрын
same here
@dibbyo456
@dibbyo456 4 жыл бұрын
VSCode has Vim?
@bjornotto98
@bjornotto98 4 жыл бұрын
@@dibbyo456 as a Plugin yes
@victornecromancer
@victornecromancer 4 жыл бұрын
Quanto tempo demorou pra aprender?
@LHFsmileface
@LHFsmileface 4 жыл бұрын
@@victornecromancer cara, o básico de movimentos é bem rápido, mas precisa se acostumar com os seletores e o search, a primeira semana foi meio improdutivo, depois disso foi bem normal.
@mflayer
@mflayer 4 жыл бұрын
5:11 What you refer to "command mode" is callen normal mode. Command mode is initiated by pressing ':'.
@bawad
@bawad 4 жыл бұрын
that sounds right, somewhere along the way I got this mixed up in my head, thanks
@AA-jb5cs
@AA-jb5cs 3 жыл бұрын
@@bawad you're a great humble guy
@stardreamse
@stardreamse 3 жыл бұрын
It makes it much easier with the proper names. Like also when you said “w” means save, then you can quit. “w” is for write, much easier to remember. And “f” and “!” takes you ‘on it’. First time watching this would feel like these characters are random. But you should instead say “f” will find in the line forward from your cursor, and as with most capital letter commands, capital “F” does the same thing but backwards from your cursor.
@nickr753
@nickr753 3 жыл бұрын
@@stardreamse Similarly, the ‘t’ motion stops right before the character because it means unTil
@gnikdroy
@gnikdroy Жыл бұрын
"command mode" is "normal mode". You enter "command LINE mode" by pressing ":". Very common confusion.
@ablanchi
@ablanchi 5 жыл бұрын
The missing practical Vim tutorial! Fantastic video Ben!
@abhinandanj8182
@abhinandanj8182 5 жыл бұрын
Your video either pulls in a new user for vim. Or seals the deal for a beginner user. I've been using it for a few months now. At least I thought I was"using" vim. Shiiiiiit I need to start makin notes. gg!!!!
@willd4686
@willd4686 3 жыл бұрын
Oh my God I've been barely touching what's possible. I might dedicate a 3 hour block of my day tomorrow to practice. I've been using vim for over a year now. I can't wait to use some of the things I'm learning in this video. I'm going to be so much faster. I didn't know about 't'. I've been only getting better as I Google things. Thank you!
@marufhasan9365
@marufhasan9365 3 жыл бұрын
One cool thing I have learned recently that Crtl+C does the same thing as ESC, which saved me a lot of time when changing mode. Another thing is that you can jump to any line by typing 'gg'. That certainly makes navigation easier.
@MichaelSalo
@MichaelSalo 2 жыл бұрын
I'm surprised that gg behaves the same as G in this case.
@Loppy2345
@Loppy2345 4 жыл бұрын
I really wanted to watch this video, but I couldn't exit vim.
@ashishproc9636
@ashishproc9636 4 жыл бұрын
Press ESC -> Then enter :q
@abhinabk8223
@abhinabk8223 4 жыл бұрын
🤣🤣🤣
@arunavdey
@arunavdey 4 жыл бұрын
@henry stevens that is if you don't want to save your progress
@kevintlu
@kevintlu 4 жыл бұрын
👏
@MrREALball
@MrREALball 4 жыл бұрын
@@ashishproc9636 ZZ
@leonardovillalobos5277
@leonardovillalobos5277 2 жыл бұрын
20 minutes in and I already feel the power! Haha, thanks Ben. I can't wait to finish the video so I can get tons more practice.
@yaseen.awazah
@yaseen.awazah 4 жыл бұрын
24:21 "hah I was clicking with my mouse like a noob" xD
@kyteinsky
@kyteinsky 3 жыл бұрын
well, you actually can: set mouse=ar
@rcht958
@rcht958 2 жыл бұрын
Saw this video about 15 months ago. I started using vim, then Linux, and then got down a huge spiral of knowledge. I found my love of computers and programming again. Thanks for sending me down this rabbit-hole :)
@Guandjoy
@Guandjoy 4 жыл бұрын
Great to observe your behavior, thanks. Things I've picked up here: - Esc binding; - Usage of `b`, `f`, `W`, `^`, `q macros`, '%' ; - `C` changes to the end of a line. - Block visual mode `Ctrl-v` seems compelling; - cVim plugin * Just recapping for myself :D And would like to mention: `S` - remove content from a line and switch to insert mode.
@bawad
@bawad 4 жыл бұрын
thanks, I'll give S a try
@Guandjoy
@Guandjoy 4 жыл бұрын
@@bawad ​ I just figured out that it works the same as `cc` :D But here is the thing which I found useful: `ciw` - change the whole word no matter where the cursor is; And one of many alternatives for `F2` and `CTRL D`: `/term-to-replace` => `cgn` => `new-term` => `.`
@islapthebass
@islapthebass 3 жыл бұрын
Yeah, not sure what it is, but I think you're pacing for explaining stuff is perfect. You have a good flow without needless utterances. Not only that, but you kinda just get to the core + essential details without any of the needless BS. Thanks man :)
@Swipe650
@Swipe650 4 жыл бұрын
Perfectly paced and explained. This is way better than the Vim classes over at Udemy, which I find very over explained and slow. And this one is free!
@Spectraevil
@Spectraevil 3 жыл бұрын
When my teachers forced me to use it in university for OS class, I used to get mad. Should have paid more attention that time....
@HarshKapadia
@HarshKapadia 3 жыл бұрын
Same here. They never tell you the importance and/or get you interested. It's all just a chore in college.
@peterarbeitsloser7819
@peterarbeitsloser7819 3 жыл бұрын
I have my Esc and CapsLock completely swapped via my os and I love it!
@mrmoinn
@mrmoinn 3 жыл бұрын
ooo that's kinda smart. How did you do that? Do you use Windows? Something else? Or do you have a System76 computer haha
@jonasstrabel
@jonasstrabel 3 жыл бұрын
Wow, that's game changing
@peterarbeitsloser7819
@peterarbeitsloser7819 3 жыл бұрын
I use Linux and there is some post on stack overflow on it.
@jasonvanburen5701
@jasonvanburen5701 3 жыл бұрын
When I can use ~ who needs the CAPS LOCK key anymore?
@SP800.69
@SP800.69 2 жыл бұрын
I found this video on my phone and I have finally escaped my TTY3 after seven years there in limbo. Thanks.
@colton3507
@colton3507 3 жыл бұрын
i cried at the macro. definitely going to learn and only use this
@spikespaz
@spikespaz 2 жыл бұрын
"Alright I am going to be teaching you everything I know about Vim." What a good, promising way to start a video. Truly a lost art.
@glebdubs
@glebdubs 2 жыл бұрын
It's an hour long, and still incredibly dense with information. By far the best complete Vim tutorial I've found.
@alainterieur5004
@alainterieur5004 4 жыл бұрын
my aim is to have enough skills to just remove my mouse driver and to use only my keyboard
@Titere05
@Titere05 3 жыл бұрын
Have you tried a tiling desktop environment?
@jamirvillarosa7924
@jamirvillarosa7924 3 жыл бұрын
unnecessary skills. browsing the web requires mouse. use a trackball or a laptop with trackpoint and you'll enjoy using mouse
@typedef_
@typedef_ 3 жыл бұрын
Not using a mouse in environments that were designed to be used with a mouse is like not using toilet paper.
@jamirvillarosa7924
@jamirvillarosa7924 3 жыл бұрын
@@typedef_ lol exactly.
@thinkthoughtthunk
@thinkthoughtthunk 3 жыл бұрын
@@jamirvillarosa7924 Have you tried Vimium? You can't get away from a mouse everywhere, but for the most part you can.
@desertsage6825
@desertsage6825 2 жыл бұрын
Been using Vim for at least half a year now, but there are still tons of things that I didn't know existed, so I've been doing a lot of things unelegantly. Thanks for showing the better methods!
@nematjonabdulloev3568
@nematjonabdulloev3568 5 жыл бұрын
Vim is a excellent text editor. It is like a whole new world of typing and thinking in text editors. I have tried a few sorts of them, such as NeoVim, SpaceVim. Now I am stick to SpaceVim. In my opnion it is more mnemonic-centric.
@sfoljatine080
@sfoljatine080 3 жыл бұрын
Great vimtutor!!! It would also be helpful if someone writes down list of all commands mentioned in this video. Just to revisit it to check if I forgot something important.
@REPOORTEHT
@REPOORTEHT 2 жыл бұрын
My preferite combo is instead that for renaming multiple occurances of same word. Search word or go to word ------> *cgn ----> Write new word -----> Esc ----> Spam period until you have done
@frankie_goestohollywood
@frankie_goestohollywood 3 жыл бұрын
Thank you for this!!!! I got stuck inside of Vim a few times and I never wanted to go back in there ever again ;-) I didn't realize until seeing these videos you made, just how fantastic it is - looking forward to learning it and using the vim extension for vscode to become more efficient. Now I'm not afraid to enter Vim.......for fear of getting stuck in an infinite loop...
@zeocamo
@zeocamo 5 жыл бұрын
if you are in a word you can do ciw and it will be like bcw but better in combos ex ci( to chnage all in (param1, param2) or with html you can do cit for change inner tag, if you want to remove the () too you can do ca( the commands is i for inner and a for around
@randomexodus1949
@randomexodus1949 3 жыл бұрын
I don't know why your explanation just makes sense to me. Thanks a lot.
@PaulSebastianM
@PaulSebastianM 10 ай бұрын
T stands for Till, because it goes until it meets the character you specified. F is the opposite of that, as it goes Forwards [to] and stopping on the character you specified.
@divinenature6220
@divinenature6220 4 жыл бұрын
will come back after i've learnt all the javascript frameworks :)
@felipemellodosreis9653
@felipemellodosreis9653 2 жыл бұрын
Best Vim tutorial i saw on internet, and it's free. It shows many commands and some daily usage. Nice!
@yashmishra1211
@yashmishra1211 4 жыл бұрын
Hi, Ben your video is commendable. It's even better than some of the more experienced people out there. One thing that I want to mention is that to delete a block of code enclosed within brackets d% can be used cause this will work even if there is no blank line separating that block of code
@YuanweiLao
@YuanweiLao 2 жыл бұрын
stopped at 30 min and that's enough for me now. Thanks.
@dankelleyns
@dankelleyns 4 жыл бұрын
This is a great video. Another great combination is "ciw" for "change in word". It saves having to navigate to the start of a word, which I suppose is a small thing, but vim is all about the power of small things, combined.
@Hassan-qn5gm
@Hassan-qn5gm 5 жыл бұрын
I have learned a lot in one hour, that was awesome.
@emailphone4728
@emailphone4728 3 жыл бұрын
Thank you Ben for putting in the time to do these videos.
@Haqz17
@Haqz17 2 жыл бұрын
Ben I am just letting you know my professor sent me here as a good tutorial for Vim. Congratulations you have made it!
@stefanboehringer9058
@stefanboehringer9058 2 жыл бұрын
Very nice tutorial on vim! I myself use emacs with evil-mode and that's a very nice vim emulator in the emacs eco system.
@muhammadmejanulhaque3305
@muhammadmejanulhaque3305 4 жыл бұрын
Thank you so much fo rmentioning the last part of vs code and chrome extension...I really hate to touch mouse from typing keyboard....this video was really helpfull.... May Peace be Upon You...
@jordanb9363
@jordanb9363 Жыл бұрын
I would give this more than 1 thumbs up if I could ! Thanks Ben, really loved the refactoring segment to see you apply these commands instead of just showing what's what
@StrangeIndeed
@StrangeIndeed 4 жыл бұрын
Another shortcuts: ZZ - save and quit ZQ - discard changes and quit These have to be capital letters and you have to be in normal mode
@CurtisDyer
@CurtisDyer 3 жыл бұрын
For me, the biggest game changer was realizing you don't need to use ESC to get back to command mode. You can use CTRL+C or, my preference, CTRL+[
@dpawensza
@dpawensza 2 жыл бұрын
The escape key randomly stops working on my kb, didnt know about this, very helpful. Thank you!!
@anishhui192
@anishhui192 5 жыл бұрын
hey ben thank you very much, this video helps a lot, especially for new learners like me.
@GHOST-dg5tk
@GHOST-dg5tk 3 жыл бұрын
1:05 i think the shovel is faster at digging holes than a vehicle thats supposed to push things
@HeitorYT
@HeitorYT 3 жыл бұрын
1° time using vim: THIS IS DIFICULT 17392° time using vim: Just making my homework using vim
@ravasj
@ravasj 2 жыл бұрын
Love how you give your own tips and how you use it too!
@zinsy23
@zinsy23 2 жыл бұрын
This is a very helpful video! It only took a couple hours tops before I became considerably more efficient with VIM than Nano because this was so well explained! I highly recommend trying out these commands as you learn them since watching this type of stuff usually doesn't instantly translate to getting good at it without actually doing it. Now that I've tried these things for myself, I plan to watch it without doing anything since I've tried everything now and I might catch a few missed details in the explanations. Personally, I recommend enabling relative line numbers because it makes it so easy and quick to jump a specific number of lines in the visible window. I created a .vimrc file in the home folder and added "set relativenumber" to it. I typed the "reset" command in the terminal to apply the changes, which I like to do for rc configuration files in general. I also swapped mappings for j and k since that feels more natural for me and restores my sanity. I added "nmap j " and "nmap k " in the .vimrc file. Note this won't apply to other modes like visual. I think there are other commands for that instead of nmap. This could be considered practice for VIM using that to modify the configuration file!
@luqmanhamdan9285
@luqmanhamdan9285 3 жыл бұрын
I think Vim if not one of the most powerful text editor that many people underestimate.
@dawid_dahl
@dawid_dahl 3 жыл бұрын
Perfect tutorial, thank you! Now I won’t have to feel like a useless loser anymore by using nano.
@GY-bd9bo
@GY-bd9bo 3 жыл бұрын
Nano is a respectable text editor, don't put yourself down for it
@tigrankhachaturian8983
@tigrankhachaturian8983 3 жыл бұрын
@@GY-bd9bo but vim is much better after all.
@GY-bd9bo
@GY-bd9bo 3 жыл бұрын
@@tigrankhachaturian8983 it is indeed
@bwulf
@bwulf 2 жыл бұрын
Thank you so much, that's super useful and I can't believe I lived until now without this.
@ezekieeeeel
@ezekieeeeel 3 жыл бұрын
Been two years. Awesome stuff. I wish I have heard of this sooner. Thanks, man
@victorglaviano
@victorglaviano 3 жыл бұрын
You don't dig holes with a bulldozer, you dig holes with a backhoe!
@QuiGonJam
@QuiGonJam 3 жыл бұрын
Ben, if you see this it would be beneficial imo if you used the chapter youtube feature to map the video timeline with the outline you set up here.
@QuiGonJam
@QuiGonJam 3 жыл бұрын
primary reason is I've come back to this video a few times
@rajarshivaidya444
@rajarshivaidya444 3 жыл бұрын
Five seconds into the video & I give +1 just for the clear audio. Very less VIM videos with clear audio on youtube.
@Ryu53898
@Ryu53898 4 жыл бұрын
Ct} can also be Ci{ (change inside curly brace)
@yudianzhu8681
@yudianzhu8681 3 жыл бұрын
Now I know why others code much faster than me! Thanks!
@sam_music555
@sam_music555 3 жыл бұрын
Just for your knoledge: _you can move around also with arrow keys instead of hjkl_
@sam_music555
@sam_music555 3 жыл бұрын
@Average Linux User why?
@jyachuo.org1
@jyachuo.org1 2 жыл бұрын
Damn I was just searching on how to exit Vim but thank you so much I will now pledge to the vim elitism and start becoming a vim elite myself
@tuananhdo1870
@tuananhdo1870 4 ай бұрын
20:50 G 21:02 D delete to the end of the line 21:20 C delete to the end of the line and put to insert mode 21:40 ct} 23:43 * find 26:11 z focus the screen where your cursor at the center 29:33 . re does the last thing you do 36:08 O
@linuxlizard
@linuxlizard 2 жыл бұрын
Thanks, Ben. The recording and macros are really useful !!! 👌
@biomechanoid
@biomechanoid 3 жыл бұрын
Here’s straight answer for 95% of people who opened that video - :q!
@Alex-gj2uz
@Alex-gj2uz 3 жыл бұрын
Nice video, I just want to point out that if you make good use of ctrl, alt, shift, arrowkeys, del, page up page down, end, home and all kinds of combinations of them, you end up nearly as fast. And these comands work everywhere, nomather if its notepad or intellij idea or whatever you want, except vim.
@nmnxe
@nmnxe 3 жыл бұрын
Nice video friend, got here by the mercy of youtube ai. personally use macros and block mode in refactoring C header files. Those are a total mess when doing. And I really love how you also align the starting and ending points between macros, that’s such a key tip to use every time that I can’t emphasise enough on. Final word, keep it on! This is a gem for beginners, to even know the thought process of programmer while doing it.
@phanphong3533
@phanphong3533 2 жыл бұрын
you know what man, i love this video, your content is so friendly with newbie like me. Thanks a lot.
@FabricioLucianoCastillo
@FabricioLucianoCastillo 3 жыл бұрын
At 17:37 Ben's computer being muted crying in pain.
@zeocamo
@zeocamo 5 жыл бұрын
ctrl+v block select is good for (un)comment code
@zeocamo
@zeocamo 5 жыл бұрын
^ and $ is from Regex so it easy to remember evenyone know regex :)
@abhinandanj8182
@abhinandanj8182 5 жыл бұрын
I was wondering where this came from. I guess the creators did good by keeping this in mind!!!
@zeocamo
@zeocamo 5 жыл бұрын
@@abhinandanj8182 in the *nix world, people try to use stuff from each other, node file/dir commands is name from *nix programs for the same reason
@reveluv8851
@reveluv8851 3 жыл бұрын
Vim actually has it's own flavor of regex and you can use it to search words. So meaning regex is a good thing in vim.
@zeocamo
@zeocamo 3 жыл бұрын
@@reveluv8851 yes i know
@blendjams
@blendjams 4 жыл бұрын
At 47:00 you could use daB to delete between the brackets including brackets. use i instead of a to exclude brackets
@ashrafulfuad2967
@ashrafulfuad2967 3 жыл бұрын
Thank you so much sir.my vim journey started with you
@sleep3017
@sleep3017 3 жыл бұрын
STOP DO NOT EXERCISE IT IS BAD FOR YOUR HEALTH This ad gets me everytime
@webmaks
@webmaks 3 жыл бұрын
More some beast features is "diw" - remove word in case your cursor is stay in the middle of the word, and second feature is regexp replasing via ":%s/old_value/new_value/g"
@Ahmed-cy4jp
@Ahmed-cy4jp 3 жыл бұрын
This is so dope! I always hated the Macbook arrow keys, now I don't need them!
@muaychris
@muaychris 3 жыл бұрын
Just realising that command mode is a thing blue my mind. That one revelation changed how I understand vim. Never gave it a chance before, but in the past 5 minutes I have figured out more than I ever had before.. Why is your editor not colorized? Or is that a noob question?
@starsign6819
@starsign6819 3 жыл бұрын
He most likely has syntax highlighting disabled.
@Bryan-bh7cy
@Bryan-bh7cy 3 жыл бұрын
Appreciate your effort man ! From CS undergraduate in China
@TiffanyNg100
@TiffanyNg100 3 жыл бұрын
This will be my bible reading every night for next couple months
@taulguedi637
@taulguedi637 3 жыл бұрын
Finish! Thank you so much, Ben. I just want to see if I can become so good at Vim like I was playing Max Payne. Thanks again! :)
@fabhi
@fabhi 3 жыл бұрын
You need a 5x option to watch Ben Awad's videos
@anantgupta7916
@anantgupta7916 3 жыл бұрын
Great video BTW Has anyone watched the preview of the video??
@sanathnherath
@sanathnherath 3 жыл бұрын
super awesome stuff. I think ,I am going to use VIM this time. keep it up. much love from Sri Lanka
@marwan32456
@marwan32456 3 жыл бұрын
@47:00 you could also cut the code snippet with "x" and paste it there.
@nikitakrulikov
@nikitakrulikov 4 жыл бұрын
It looks like magic.
@notTh3Mag1c1an
@notTh3Mag1c1an 3 ай бұрын
Ctrl + Q for windows user. As there might be a conflict with using Ctrl +V as it pastes the last thing you copied instead of getting the visual block mode that you wanted.
@sahithyankandathasan9496
@sahithyankandathasan9496 3 жыл бұрын
I didn't watch the video fully but I don't think I would enjoy using Vim. Anyways, I will give it a shot.
@SogMosee
@SogMosee 5 ай бұрын
i recommend remapping { and } to shift+j and shift+k
@ahmedschhaider4762
@ahmedschhaider4762 4 жыл бұрын
thank you really for this tutorial, This is really Cool, I tried it on windows and it runs very nicely, I hope you are OK these days, Take care, Best regards!!
@amitsharma5996
@amitsharma5996 4 жыл бұрын
Thanks a lot dude... I’ve become a vimmer now
@bawad
@bawad 4 жыл бұрын
welcome to the club :)
@amitsharma5996
@amitsharma5996 4 жыл бұрын
Ben Awad how about doing some deep node stuff like async and event loop videos?
@bawad
@bawad 4 жыл бұрын
maybe
@chandantk5135
@chandantk5135 3 жыл бұрын
Thankyou for such a wonderful video Found it really helpful I didn't know that vim editor could be so powerful it was something that I had never come across,keep posting such great videos 😀👍
@sspaeti
@sspaeti 3 жыл бұрын
That was awesome, really appreciated this video. Learned a ton. Thanks, Ben!
@thebadguywalking7396
@thebadguywalking7396 2 жыл бұрын
this isnt the ben on tiktok everyone loves is it ? LMAO this video is linked in my cs class rn wtf
@edwardmacnab354
@edwardmacnab354 2 жыл бұрын
For noobs , you should point out that the colon before q , as in " :q " , is to put vim into command mode , otherwise the q is just another piece of entered text , and if I'm not wrong :i should put vim back into text mode ?
@caiocaio1359
@caiocaio1359 5 жыл бұрын
gg brings starcraft memories. LOL. Great video btw, didn't know vim and I'm already using it, thanks friend.
@bawad
@bawad 5 жыл бұрын
zerg ftw
Mastering the Vim Language
36:20
thoughtbot
Рет қаралды 611 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 173 М.
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 26 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 63 М.
Go | 6 Unique Techniques
9:04
dadcod
Рет қаралды 4,1 М.
Programming a multiplayer game from scratch in 7 DAYS
18:28
What Programming Font Should You Use?
4:12
Ben Awad
Рет қаралды 42 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 893 М.
I Love Neovim But I WONT Use It | Prime Reacts
23:22
ThePrimeTime
Рет қаралды 118 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
Learning Vim in a Week
23:51
thoughtbot
Рет қаралды 464 М.