Vim Tutorial

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 601

  • @shreym03
    @shreym03 3 роки тому +1436

    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 роки тому +64

      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 роки тому +33

      Underrated comment

    • @shreym03
      @shreym03 3 роки тому +14

      @@fokkedeboer2342 thanks. I made it recently.

    • @mohamedirfan2816
      @mohamedirfan2816 3 роки тому +4

      This is really helpful bro, Thank you so much

    • @abdarafi
      @abdarafi 3 роки тому +8

      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 роки тому +482

    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 роки тому +28

      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 роки тому +1

      That's a nice perspective.

    • @小鳥ちゃん
      @小鳥ちゃん 3 роки тому +3

      Yeah, that fits my mindset so nicely, I think I may really love Vim

    • @jperkinsdev
      @jperkinsdev 2 роки тому +1

      Thank you for the perspective

    • @arielllanita7174
      @arielllanita7174 2 роки тому

      Well said

  • @lanorothwolf2184
    @lanorothwolf2184 4 роки тому +807

    This is what learning how to tie shoelaces as an adult must feel like

    • @rivubardhan6376
      @rivubardhan6376 3 роки тому +24

      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 роки тому +117

      @@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 роки тому +1

      ua-cam.com/video/qMrhd61l4Fw/v-deo.html

    • @joefuentes2977
      @joefuentes2977 3 роки тому +15

      When I first discovered vim i thought something was terribly wrong with the program.

    • @oussamakhalfi1751
      @oussamakhalfi1751 3 роки тому

      @@ayeansh xxx

  • @bagoquarks
    @bagoquarks 5 років тому +140

    The mission-critical feature of this video is the display of the keystrokes in a large font. Well done.

  • @ajfromAZ
    @ajfromAZ 5 років тому +924

    You don't dig holes with bulldozers.

    • @StephenRayner
      @StephenRayner 5 років тому +51

      Hahaha, yea but you know he means excavator

    • @abhinandanj8182
      @abhinandanj8182 5 років тому +4

      Never caught that. Lol though

    • @becausewin
      @becausewin 5 років тому +4

      @Farouk Mokhtari completely lost it when he said this

    • @simopr09
      @simopr09 4 роки тому +12

      he meant filling up a hole with a shovel or a bulldozer :p

    • @AlessanderEspinoza
      @AlessanderEspinoza 4 роки тому +14

      I came to the comments just to see if someone caught this.

  • @gonzalochristobal
    @gonzalochristobal 5 років тому +60

    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!

  • @zeocamo
    @zeocamo 5 років тому +110

    if you want to format code select the code with shift+v and hit = to make the code perfect.

    • @zeocamo
      @zeocamo 5 років тому +6

      @Nathan Withers yes that nice to .. i map it to ,= in my vimrc

    • @lucianobarletta8283
      @lucianobarletta8283 4 роки тому +5

      I love this one

    • @reveluv8851
      @reveluv8851 4 роки тому +5

      @@zeocamo nnoremap = gg=G is a better map as it returns you to your previous location

    • @zeocamo
      @zeocamo 4 роки тому

      @@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

    • @reveluv8851
      @reveluv8851 4 роки тому

      @@zeocamo I thought you were talking about the entire file

  • @333peacher4
    @333peacher4 4 роки тому +137

    Best vim presentation I have seen: Font size and keycast just about right, and the warm sexy voice, nice and slow.

    • @anshul9856
      @anshul9856 3 роки тому +38

      bruh this is a programming vid not an erotica

    • @夕阳-n1h
      @夕阳-n1h 3 роки тому +6

      gay

  • @dawid_dahl
    @dawid_dahl 4 роки тому +34

    (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!)

    • @TimYear8
      @TimYear8 3 роки тому +1

      That explains why Ben did it in his nvim config file

    • @jiyometrik
      @jiyometrik 3 роки тому +3

      I use hybrid numbering - current line shows its absolute line number, the other lines show the relative line numbers. Helps a lot.

  • @LHFsmileface
    @LHFsmileface 5 років тому +60

    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 роки тому +1

      @@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 роки тому +63

    5:11 What you refer to "command mode" is callen normal mode. Command mode is initiated by pressing ':'.

    • @bawad
      @bawad  4 роки тому +43

      that sounds right, somewhere along the way I got this mixed up in my head, thanks

    • @AA-jb5cs
      @AA-jb5cs 4 роки тому +9

      @@bawad you're a great humble guy

    • @stardreamse
      @stardreamse 4 роки тому +9

      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 4 роки тому +5

      @@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.

  • @thedeveloper4207
    @thedeveloper4207 5 років тому +43

    I started using Vim because of you

  • @MrDavidablake
    @MrDavidablake 27 днів тому

    I'm only in the first 13 minutes and have already learned a lot. You're a natural teacher because you show what you do while doing it.

  • @ablanchi
    @ablanchi 5 років тому +42

    The missing practical Vim tutorial!
    Fantastic video Ben!

  • @Loppy2345
    @Loppy2345 4 роки тому +974

    I really wanted to watch this video, but I couldn't exit vim.

    • @ashishproc9636
      @ashishproc9636 4 роки тому +18

      Press ESC -> Then enter :q

    • @abhinabk8223
      @abhinabk8223 4 роки тому +8

      🤣🤣🤣

    • @arunavdey
      @arunavdey 4 роки тому +2

      @henry stevens that is if you don't want to save your progress

    • @kevintlu
      @kevintlu 4 роки тому

      👏

    • @MrREALball
      @MrREALball 4 роки тому +5

      @@ashishproc9636 ZZ

  • @abhinandanj8182
    @abhinandanj8182 5 років тому +12

    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!!!!

  • @leonardovillalobos5277
    @leonardovillalobos5277 3 роки тому +9

    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.

  • @marufhasan9365
    @marufhasan9365 4 роки тому +6

    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 3 роки тому

      I'm surprised that gg behaves the same as G in this case.

  • @willd4686
    @willd4686 3 роки тому +6

    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!

  • @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 :)

  • @islapthebass
    @islapthebass 4 роки тому +11

    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 :)

  • @yaseen.awazah
    @yaseen.awazah 4 роки тому +118

    24:21
    "hah I was clicking with my mouse like a noob" xD

    • @kyteinsky
      @kyteinsky 3 роки тому

      well, you actually can:
      set mouse=ar

  • @glebdubs
    @glebdubs 3 роки тому

    It's an hour long, and still incredibly dense with information. By far the best complete Vim tutorial I've found.

  • @Swipe650
    @Swipe650 4 роки тому +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!

  • @Guandjoy
    @Guandjoy 5 років тому +1

    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  5 років тому

      thanks, I'll give S a try

    • @Guandjoy
      @Guandjoy 5 років тому +1

      @@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` => `.`

  • @Hassan-qn5gm
    @Hassan-qn5gm 5 років тому +9

    I have learned a lot in one hour, that was awesome.

  • @alainterieur5004
    @alainterieur5004 4 роки тому +181

    my aim is to have enough skills to just remove my mouse driver and to use only my keyboard

    • @Titere05
      @Titere05 4 роки тому +3

      Have you tried a tiling desktop environment?

    • @jamirvillarosa7924
      @jamirvillarosa7924 3 роки тому +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 роки тому +11

      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.

  • @felipemellodosreis9653
    @felipemellodosreis9653 2 роки тому

    Best Vim tutorial i saw on internet, and it's free. It shows many commands and some daily usage. Nice!

  • @frankie_goestohollywood
    @frankie_goestohollywood 4 роки тому +2

    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...

  • @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!

  • @spikespaz
    @spikespaz 3 роки тому

    "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.

  • @tuananhdo1870
    @tuananhdo1870 8 місяців тому

    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

  • @zeocamo
    @zeocamo 5 років тому +3

    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

  • @yashmishra1211
    @yashmishra1211 4 роки тому +3

    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

  • @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

  • @ravasj
    @ravasj 3 роки тому

    Love how you give your own tips and how you use it too!

  • @peterarbeitsloser7819
    @peterarbeitsloser7819 4 роки тому +5

    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?

  • @Spectraevil
    @Spectraevil 3 роки тому +23

    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 роки тому +4

      Same here. They never tell you the importance and/or get you interested. It's all just a chore in college.

  • @randomexodus1949
    @randomexodus1949 3 роки тому

    I don't know why your explanation just makes sense to me. Thanks a lot.

  • @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

  • @colton3507
    @colton3507 3 роки тому +4

    i cried at the macro. definitely going to learn and only use this

  • @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!

  • @victorglaviano
    @victorglaviano 3 роки тому +1

    You don't dig holes with a bulldozer, you dig holes with a backhoe!

  • @anishhui192
    @anishhui192 5 років тому +8

    hey ben thank you very much, this video helps a lot, especially for new learners like me.

  • @sfoljatine080
    @sfoljatine080 4 роки тому +2

    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.

  • @GHOST-dg5tk
    @GHOST-dg5tk 3 роки тому +8

    1:05 i think the shovel is faster at digging holes than a vehicle thats supposed to push things

  • @nematjonabdulloev3568
    @nematjonabdulloev3568 5 років тому +3

    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.

  • @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.

  • @ezekieeeeel
    @ezekieeeeel 3 роки тому

    Been two years. Awesome stuff. I wish I have heard of this sooner. Thanks, man

  • @divinenature6220
    @divinenature6220 4 роки тому +5

    will come back after i've learnt all the javascript frameworks :)

  • @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.

  • @zeocamo
    @zeocamo 5 років тому +23

    ctrl+v block select is good for (un)comment code

  • @2p2hong
    @2p2hong 3 роки тому

    you know what man, i love this video, your content is so friendly with newbie like me. Thanks a lot.

  • @bwulf
    @bwulf 3 роки тому

    Thank you so much, that's super useful and I can't believe I lived until now without this.

  • @marwan32456
    @marwan32456 3 роки тому

    @47:00 you could also cut the code snippet with "x" and paste it there.

  • @Ryu53898
    @Ryu53898 5 років тому +5

    Ct} can also be Ci{ (change inside curly brace)

  • @dankelleyns
    @dankelleyns 4 роки тому +3

    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.

  • @muhammadmejanulhaque3305
    @muhammadmejanulhaque3305 4 роки тому +3

    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...

  • @linuxlizard
    @linuxlizard 2 роки тому +1

    Thanks, Ben. The recording and macros are really useful !!! 👌

  • @stefanboehringer9058
    @stefanboehringer9058 3 роки тому +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.

  • @QuiGonJam
    @QuiGonJam 4 роки тому +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 4 роки тому

      primary reason is I've come back to this video a few times

  • @sspaeti
    @sspaeti 3 роки тому +1

    That was awesome, really appreciated this video. Learned a ton. Thanks, Ben!

  • @StrangeIndeed
    @StrangeIndeed 4 роки тому +2

    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

  • @REPOORTEHT
    @REPOORTEHT 3 роки тому

    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

  • @Bryan-bh7cy
    @Bryan-bh7cy 4 роки тому

    Appreciate your effort man ! From CS undergraduate in China

  • @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!

  • @sanathnherath
    @sanathnherath 4 роки тому

    super awesome stuff. I think ,I am going to use VIM this time. keep it up. much love from Sri Lanka

  • @YuanweiLao
    @YuanweiLao 3 роки тому

    stopped at 30 min and that's enough for me now. Thanks.

  • @stronglifter
    @stronglifter 4 роки тому +1

    This is a great tutorial man. Thanks a ton. Was really helpful to me.

  • @ashrafulfuad2967
    @ashrafulfuad2967 3 роки тому

    Thank you so much sir.my vim journey started with you

  • @udemyaccount4082
    @udemyaccount4082 2 роки тому

    0:30 I'm curious as to where the "it will pay off huge dividends over time" saying comes from. One thing I have noticed throughout people that are well-read on programming, is that we all start to cross reference the same books. Personally, I've heard you and Primeagen say things in this exact manner, "it will pay off huge dividends over the long term". I'm not saying that this had to come from somewhere, but if it did, I am curious to know as to where you read this. So that I can go read this as well.
    Thanks.

  • @PaulSebastianM
    @PaulSebastianM Рік тому

    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.

  • @mamtachahal1277
    @mamtachahal1277 5 років тому +2

    Awesome man, was an amazing tutorial. Very thankful to u

  • @CurtisDyer
    @CurtisDyer 4 роки тому +4

    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!!

  • @sam_music555
    @sam_music555 4 роки тому +1

    Just for your knoledge: _you can move around also with arrow keys instead of hjkl_

  • @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 😀👍

  • @biomechanoid
    @biomechanoid 3 роки тому +11

    Here’s straight answer for 95% of people who opened that video - :q!

  • @rudrOwO
    @rudrOwO 3 роки тому

    at 53:57, why doesn't the regular insert mode (small i) work ? why must I use (capital i) ?

  • @HeitorYT
    @HeitorYT 3 роки тому +1

    1° time using vim: THIS IS DIFICULT
    17392° time using vim: Just making my homework using vim

  • @simopelle
    @simopelle 4 роки тому +4

    How long have you been using Vim to reach your level of confidence?

  • @luqmanhamdan9285
    @luqmanhamdan9285 3 роки тому +1

    I think Vim if not one of the most powerful text editor that many people underestimate.

  • @zeocamo
    @zeocamo 5 років тому +24

    ^ and $ is from Regex so it easy to remember evenyone know regex :)

    • @abhinandanj8182
      @abhinandanj8182 5 років тому +1

      I was wondering where this came from. I guess the creators did good by keeping this in mind!!!

    • @zeocamo
      @zeocamo 5 років тому +2

      @@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 4 роки тому +1

      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 4 роки тому

      @@reveluv8851 yes i know

  • @dawid_dahl
    @dawid_dahl 4 роки тому +4

    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

  • @Hyper484
    @Hyper484 2 роки тому

    This was an easy Like and Subscribe and Thank you so much Ben for putting your time and effort into this. Really appreciate it !!

  • @muaychris
    @muaychris 3 роки тому +2

    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.

  • @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! :)

  • @reactnoobie7820
    @reactnoobie7820 4 роки тому

    Thanks a lot for this great tutorial. I'm just starting out with Vim and I'm a lot less scared now :D

  • @arsalanbardsiri
    @arsalanbardsiri 3 роки тому

    54:00 crtl+v then Shift+i then # to comment in python for example

  • @legionSpat
    @legionSpat 5 років тому +1

    you could use ^ for going to beginning of a line. And c i ) instead of c t ),

  • @yudianzhu8681
    @yudianzhu8681 3 роки тому

    Now I know why others code much faster than me! Thanks!

  • @sleep3017
    @sleep3017 4 роки тому +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"

  • @froggy5967
    @froggy5967 4 роки тому +1

    Could you please share what keyboard that you use? It sounds really nice, must better than my Brown switch. Special the bottom out sound, it must be nice key caps.

  • @notTh3Mag1c1an
    @notTh3Mag1c1an 7 місяців тому

    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.

  • @emerald0936
    @emerald0936 4 роки тому

    Thanks man, it really is helping me to code faster .

  • @cakeu
    @cakeu 3 роки тому +7

    > "Vim Tutorial"
    > Checks length
    > 1:04:44

  • @beckhamoregunwa993
    @beckhamoregunwa993 3 роки тому +2

    Can I still use this tutorial to learn neovim or is there too much difference

  • @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 років тому +4

    gg brings starcraft memories. LOL. Great video btw, didn't know vim and I'm already using it, thanks friend.

    • @bawad
      @bawad  5 років тому +2

      zerg ftw

  • @FabricioLucianoCastillo
    @FabricioLucianoCastillo 3 роки тому

    At 17:37 Ben's computer being muted crying in pain.