Learn How to Use the Vim Text Editor (Episode 1) - Basic Usage (and how to exit Vim)

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

КОМЕНТАРІ • 99

  • @ahahswe
    @ahahswe Рік тому +16

    11 commands in 1 video, this is the best Vim introduction!

    • @achimwasp
      @achimwasp 6 місяців тому

      ... or just type "vimtutor" at your prompt and you'll learn much more as you will actually do the things that are explained.

  • @blah148
    @blah148 Рік тому +3

    The first 2 minutes were a bit fluffy, but nice long-form vids! Glad to have this series.

  • @DiariesByAn
    @DiariesByAn Місяць тому +2

    I just finished the series, and I have to say it is very well organized and easy to grasp!
    Thank you for creating this series.

  • @randleqgod
    @randleqgod Рік тому +15

    This is literally my favorite editor. I appreciate you putting this out.

  • @programmersurfdude
    @programmersurfdude Рік тому +2

    Thank you so much, I am a student right now and we are learning about Vim. Also want to mention that your room is AMAZING

  • @Wampa842
    @Wampa842 Рік тому +20

    18:09 One addition I would've made. Pressing 0 moves the cursor to the beginning of the line, but typing ^ (caret, which I think is shift+6 on a US keyboard) moves the cursor to the first non-space character. Very useful if the text file is indented.

    • @juanmacias5922
      @juanmacias5922 Рік тому +1

      Huh, that's a no go for my nvim setup lol I would have mentioned "o", and "O", for creating a new line under, and above the cursor. :D

    • @pablogonzalezmora4679
      @pablogonzalezmora4679 Рік тому +1

      Very good tip. In Spanish keyboards, caret needs two keystrokes.

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

    I love how you break down the lessons into bite-size for easy assimilation.

  • @blaq_da_greater
    @blaq_da_greater 11 місяців тому +1

    I started using vim recently. It is hella powerful when you start getting used to it.

  • @Yettyslay
    @Yettyslay 6 днів тому

    great video !!!!!!! simple straight forward I learned how to open vim , edit a file, save a file , stack commands, different tricks 0 get you the beginning of a line $ end of a line and A allows you to write . learned the different mood in vim and how to change

  • @ghangj
    @ghangj 10 місяців тому +1

    I use vim btw :). Thanks for your lectures and videos, it has improved my linux skills.

  • @jamesalles139
    @jamesalles139 Рік тому +3

    Yes. Exiting Vim should be the first lesson and the first step!
    EMACS

    • @Mzansi74
      @Mzansi74 Рік тому +1

      EMACS is really cool. And I think that it is the most productive editor, especially for systems programmers. The learning curve was just so steep, so I never learnt it.
      But with today's IDEs, GUI is actually the most productive for most people.
      I did not realize that EMACS is still a thing! LOL

  • @bTorch-nz7rp
    @bTorch-nz7rp 10 місяців тому

    Great start to relearning this amazing journey!!!!

  • @JudgeFredd
    @JudgeFredd Рік тому +2

    Everybody needs this video ...

  • @griefingcloud4391
    @griefingcloud4391 7 місяців тому +2

    Such a gentle introduction... Thanks for providing nice video for the beginners.

  • @cp-cpp
    @cp-cpp 7 місяців тому +1

    One of the best tutorial to use the Vim Editor :)

  • @Rbourk252
    @Rbourk252 Рік тому +5

    I love this editor. Once I’d mastered a few key bindings and commands, I could edit text very quickly without touching the mouse.

  • @matthewfaherty
    @matthewfaherty Рік тому +5

    Thank you for this.
    I literally just asked a Facebook group about Linux why on earth somebody would use vim, as to me, it seems so impossible to use compared to things like nano.
    Answers I got surprised me. And I didn't realize how important it is in the Linux/UNIX space

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

      I think it's a preference thing, but after you understand the commands, and they become second nature, you fly through files! I feel hindered when I have to use the mouse to edit files now lol

    • @Mzansi74
      @Mzansi74 Рік тому +3

      Another cool thing, is the the predecessor of vim, namely vi was available on (almost) all POSIX (UNIX) installations.
      That is why we "had" to learn it. Especially because we were often not directly connected to the Internet. And vi is even more esoteric. Coming from vi, vim was REALLY a step up.

    • @ironfist7789
      @ironfist7789 Рік тому +3

      @@Mzansi74 I'm still on pico which is pre-nano. I used vi a bit but never spent enough time to make it second nature

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

      @@ironfist7789 "real programmes" us ed - the predecessor to vi LOL

  • @ManuelJordan317
    @ManuelJordan317 Рік тому +2

    Huge thanks for this video and the playlist - Yes, I am going to watch all this serie!!!!

  • @Saicherry_29
    @Saicherry_29 7 місяців тому +1

    great explanation ...with simple terminology

  • @xorda1337
    @xorda1337 7 місяців тому +11

    FINALLY I exited vim 😭

  • @freckhard
    @freckhard Рік тому +7

    :wq will always write the entire buffered file before quitting, wether or not you have changed it. You may want to use :x which only writes the buffer if you have actually edited the file and then closes it / exits vim. Especially useful for very large files like syslog and others, hope this helps :-)
    Great series Jay, even though I am using vim daily I still watch your (updated) series, you never know if there is something new or something I forgot, keep it up!

  • @Tomas_F.
    @Tomas_F. 6 місяців тому

    My first touch with the Vim. Very nice video, thank you!

  • @mauipomare3232
    @mauipomare3232 5 місяців тому

    best tutorial ive ever seen

  • @RahulKumar-yq9ic
    @RahulKumar-yq9ic 11 місяців тому +2

    learning is not a rush

  • @ranimungcal
    @ranimungcal 10 місяців тому

    thank you for this vim tutorial!

  • @dmoney37
    @dmoney37 7 місяців тому +2

    Sorry to interrupt myself *screen cut* 😂😂😂😂 hilarious

  • @shado2wx
    @shado2wx Рік тому +3

    Thank you for this!!!

  • @rajucherian
    @rajucherian 4 місяці тому

    Excellent!!

  • @jondeere5638
    @jondeere5638 5 місяців тому

    I never cared much for Vim. Then I saw an elderly woman who retired from the Bell Labs and worked with me use it to edit a file. Her fingers flew over the keyboard like magic. Then she said, try that with any other editor. From an expert, I learned a new respect for Vim.

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

    Very informative, thank you!

  • @2wardruid2
    @2wardruid2 Рік тому

    Great tutorial! Thank you

  • @subarutendou
    @subarutendou Рік тому +4

    Good to see a vim turtorial, I'm using emacs but using evil for vim movement because I'm using vimium on browser and I'm lazy and don't want to using so many different movement across all the program and vim seem to available for almost every program I'm using, so I'm choose vim movement. evil have some movement not act the same as normol vim, but it still good to refresh and maybe found something I didn't think of how to use vim movement.

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

    Thank you Jay.

  • @n-o-i-d
    @n-o-i-d Рік тому

    The last part of the title made me chuckle

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

    Quick save in vim?
    Hey Jay.
    After nano, I'm a very happy micro user.
    But I love to optimise and get more efficient and what's better than get glued to the keyboard?
    I love the hjkl navigation!
    So here comes my question:
    I'm learning bash scripting and, like everybody else, I got one terminal with my script and another with my code.
    But to test it, I have to leave insert mode, type w, hit enter, test my code, go back and enter edit mode again.
    On nano you just hit Ctrl + w and on micro it's really Ctrl + s !
    What I mean is that how can the most efficient editor ever be so inefficient in such a basic and essential task?
    Save, test, continue.
    Thx for all your great work.

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

    Awesome video !!

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

    micro is my favorite nano-styled editor, vim is my favorite general text editor

  • @tango-pf2kw
    @tango-pf2kw 2 місяці тому

    Hi Jay many thanks for your efforts in this series. I really would like to hear your thoughts about emacs, since you never made a series about it.

  • @micranes673
    @micranes673 5 місяців тому

    Great stuff.

  • @atajahangiri5861
    @atajahangiri5861 Рік тому +1

    VERY very GOOD video

  • @user-xi6xg1fs2m
    @user-xi6xg1fs2m День тому

    thank you for the help

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

    I love it!

  • @achinthadulshan8682
    @achinthadulshan8682 Рік тому +1

    Thanks❤‍🔥

  • @stibbits7087
    @stibbits7087 7 місяців тому +1

    Can I suggest that for a tutorial about a text-driven program like vim, having the keystrokes you enter displayed on screen is almost essential. Most screen recorders allow you to do this. Thanks for the video

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

    Good guide.

  • @Jason.M
    @Jason.M Рік тому

    Yes! I Want to take the VIM "cert" from the Linux foundation.

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

    Is curious, I have Ubuntu Desktop 22.04 and I wrote the "command -v vim" command and returns nothing as you too. I wrote the "vim --version" command and returns error about vim is not installed and suggested some commands to install, such as vim, vim-tiny .... the fun part is if I execute "vi --version" it shows an output with "VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 16 2023 18:15:38)" as the first line .... so VIM really was already installed from the beginning - and just in case, I can open VIM as you do with the same commands but just using "vi" and not "vim"

  • @vimlinux
    @vimlinux 2 місяці тому

    The reason people make memes saying they can't exit Vim is that they don't want to exit Vim, or they love Vim so much that they don't want to leave it.

    • @melvillespence6768
      @melvillespence6768 25 днів тому

      The very Linux for dummies forgot to include how to save or quit Vim, hence

  • @djlclopez128
    @djlclopez128 7 місяців тому +1

    I am new to this, but I have a question:
    I hear a lot of bad things about Vim, but some people still use it. Is it bad to use as an IDE, or is it completely outdated? I don't understand if it should be used or not, it seems so hated.

  • @razTechWorld
    @razTechWorld 4 місяці тому

    after 4 years+ now i am know how to exit from vim..___________love from bangladesh

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

    good stuff

  • @johnwebster5983
    @johnwebster5983 Місяць тому

    How to exit Vim? I had trouble too, as I didn't notice the colon before the q.

  • @INTJames
    @INTJames Рік тому +1

    Redo is ctrl r

  • @GettyBlocks
    @GettyBlocks 6 місяців тому +2

    I'm actually learning this tutorial because i couldn't exit vim

  • @TùngHoàng-k4g
    @TùngHoàng-k4g Місяць тому

    I often confuse insert and normal modes when using vim. And it gradually becomes tiring to keep thinking about which mode I am in. Does anyone have any tips?

  • @KomentarSaya
    @KomentarSaya 11 місяців тому +1

    please add screenkey to your monitor

  • @SaywhateverI
    @SaywhateverI 5 місяців тому

    Lol I remember watching this when I was learning python and trying to be cool in my class

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

    nice

  • @VulcanOnWheels
    @VulcanOnWheels 6 місяців тому

    8:00 This never made sense to me because the instructions are on the screen as soon as you start Vim.

  • @Yupppi
    @Yupppi Рік тому +1

    "People make fun of vim saying how hard it is to exit" that is not a joke. I started my coding on my uni's unix server terminal interface and used jed that was configured for students. It also had vim and I heard vim is good so I opened it and I also sometimes accidentally opened it. I was always stuck for minutes and it was doing all kinds of crazy stuff (and I never managed to write a single line that I intended).
    Just now I'm editing a file in vim and :q does nothing (other than type :q on the file), I can't even get to the command area.

  • @jasonbourne757
    @jasonbourne757 Рік тому +1

    Please do the NeoVIM series

  • @MaverickFischer
    @MaverickFischer Рік тому +21

    Wait, the title says how to exit VIM. I’m watching later!

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

    I'm using vim motions in VS Code and for some reason shift-I command doesn't work here :(

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

    What is benefit of vim over nano?

    • @fatih-z9d
      @fatih-z9d Рік тому +3

      More feature-rich and easier to navigate/edit the file

    • @juanmacias5922
      @juanmacias5922 Рік тому +2

      I think it depends on what you are doing? If you are just changing some configuration, or something small, might as well use nano. But if you change files often, like a developer, it enables you to move around the files easily, find, replace, cut, paste, multiply text. Along with macros, which are like tiny recordings, that will replay a combination of key strokes as many times as you need, so that you don't have to do something manually many times. Also, I believe nano doesn't have syntax highlighting for programming languages, and you can also run a program from vim by using the command ": ! bun program.ts". Bun is a JavaScript run time, which can be replaced by any language runner, like ": ! python program.py"

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

    :x team unite!

  • @bugajpcmr6093
    @bugajpcmr6093 10 місяців тому

    How do I quit?

  • @rajendraprasad937
    @rajendraprasad937 Рік тому +1

    😅😅😅😅😅😅

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

    Not the Windows tutorial :0
    lol

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

    ":q" - does not work! want my screenshots? )))) It only works befor you start texting!

    • @helloimatapir
      @helloimatapir Рік тому +2

      Of course it works. Sounds like you are in Insert Mode. Go back to Normal Mode.

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

      @@helloimatapir This. Probably needs to press Esc first to go back to normal mode.

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

    is there a video with a HELLA FAST recap of the hotkeys??? like wtf is these tutorials with all this useless extra info?

    • @emir7884
      @emir7884 8 місяців тому +1

      yeah, its useless for you, but for a beginner is usefull

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

    It's not possible to exit vim.

  • @d3x84
    @d3x84 9 місяців тому

    vim is very likely one of the worst applications ever created.

    • @MrDavidablake
      @MrDavidablake 2 місяці тому

      Where can I find your improved application?

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

    You talk too much.

    • @Mzansi74
      @Mzansi74 Рік тому +3

      There are other channels...
      But I find Jay's step-by-step approach the best for solidifying Linux knowledge!

    • @SnowDaemon
      @SnowDaemon Рік тому +5

      This isn't a channel for quick how-to's. This is a channel for Linux enthusiasts who want to learn as much Linux as possible. We love this guy, he's a treasure trove of Linux administration and automation. You can go watch a 30-second how-to from some high-schooler who googled how to install Vim 30 minutes before he recorded the video if you want.

  • @ubeaut
    @ubeaut Рік тому +2

    I put these 2 lines in my .vimrc so I have persistent undo.
    echo "set undodir=~/.vim/undodir" >> ~/.vimrc
    echo "set undofile" >> ~/.vimrc
    I like vim but sometimes it is confusing.

  • @moistness482
    @moistness482 Рік тому +1

    You can always :q! vim
    But you can never quit vim

  • @nanamagagula3914
    @nanamagagula3914 2 місяці тому

    🐲🐉
    #themall
    #ntibimaepa