How To Make Vim Amazing From Scratch

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 78

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

    Before watching, I thought it was a tutorial on vim since I struggle with it, but this setup really fascinated me. Now I'm gonna try to use vim more on my coding. Maybe one day I‘ll reach this level too^^
    Thanks for the inspiration

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

      Vim has a steep learning curve initially but then it becomes quite intuitive. You just have to grind through the initial hurdle. Good luck! 🙂

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

    I found this video informative, detailed and on point. You prepared yourself properly, vídeo is structured, with proper pace and sequence of events. Your voice is calm too, haha

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

      Haha thank you for your kind words and your feedback 😆🙂

  • @Justjames283
    @Justjames283 2 роки тому +2

    Excellent video!! Not only did I learn about vim, I learned a lot about Unix!

  • @pranavpurankar
    @pranavpurankar 3 місяці тому

    Kantan, I watched your video on freecode camp, you nailed it man. I learned micro service arc; super helpful. I use vim, and I like your terminal asthetics althouhg not fan of emojis, plain and classic best suited for me. Thank you, for enlightening lives of millions like me!

    • @kantancoding
      @kantancoding  3 місяці тому

      No problem! Thank you for giving my content a chance. Sometimes I strip out the emojis as well 😂

  • @mo.G_2020
    @mo.G_2020 4 місяці тому

    what a chad, he set up the whole work environment in less than an hour

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

    I struggled to setup my vim, you saved the day. Thank you very much.

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

    Thank you bro! Been looking for a video that explains everything clearly

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

    This video helps me in configuring my vimrc, though i want to make my vim more like jupyter notebook but not find anything which gives vim an interactive layout like jupyter.
    At last Thanks for video it really helps me.

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

    Incredible... Thank you for taking the time to do this!!

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

    @Kantan, thank you so much for this video!! This is very helpful :) Great job!

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

      Thank you! I’m glad you liked it 🙂

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

    Great video! it would be awsome if this was something you could roll out in one command on either windows or mac. I love this!

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

      Yeah, that would be cool but I think that there are too many moving parts. The command would likely break after one of those parts changes something 🤣

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

    To be fair, a lot of what is shown in this video is not needed or even recommended for beginners, since that is the group of people that can benefit the most from understanding and using the built-in features that plugins often seek to replace.
    You can use :define and :include as a replacement of "Go to definition" and "Go to reference" of language servers. However, if you really need languages servers, I would suggest to simply install neovim with its native LSP features instead of running COC which is slower and more error-prone.
    Instead of nerdtree, maybe you can get away with :Ex, :find, :h args and :h buffers. When you actually have a need for faster navigation, fzf.vim (also shown in this video) is really good or command-t. In many cases, you are actually searching patterns within your code base and not simply files. Therefore, it would be more appropriate to use :vimgrep and :grep.
    Adding plugins for language support can be a bit too much when you only want compilation. Behind the scenes, such plugins set little more than a decent :makeprg and :errorformat, which you can configure on your own according to your requirements.
    As a replacement of code formatter plugins, vim provides :formatprg to run external programs. As an alternative, visually selected text can be piped to external programs via !{motion}{filter}

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

    Awesome, thank you!

  • @samuelkanja-kb1ko
    @samuelkanja-kb1ko 8 місяців тому

    A very informative vim video, what did you key did you map to trigger auto completion

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

      I think it’s tab but I honestly don’t know since it’s just muscle memory 😂

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

    Awesome video, I'm really enjoying your channel. Please what are the commands for "Go to definition" and for commenting multiple lines? I couldn't find that. Thank you

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

      Thanks! I explain go to definition in the video. I even added it to the vimrc linked in the description. Commenting lines as well. All of it is in the vimrc ☺️

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

    great ❤

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

    Awesome video! What font and terminal do you use?

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

      I don’t remember the font from this video but I use iterm2

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

    hi , nice video
    looking for this .

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

    bro docker seems overkill for such a use case vimrc can be sourced to your liking; plugins might cause a issue but still a minor one

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

    How do you jump back to your code from a definition or reference? Awesome video too!!!

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

      Thank you! When you move your cursor to a particular position in a file, Vim remembers this and lets you move around between where you are and where you were. CTRL-O goes to the older position, and CTRL-I or tab goes to the newer one.

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo Рік тому

      With fuzzy finder, I will also just do a search for Recent Files, and the last file I was in will be at the top of the list. Hit return and I'm back where I came from.
      Ctrl-O is great, but if you have polluted your jump list while in the new file, it's a bit tedious vs the fzf recent file list method.

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

    overall I like the video, taught me some vimrc magic although I adapted it to macos using brew in place of wget! On a psuedo-related note, however, I have been using kite in VSCode, PyCharm, Sublime, and apparently i had kite-vim loaded too; kite and coc conflict with each other it seems. I get 'Kite: disabling coc.nvim's completion in this buffer' every now and then, and the net-lookup-fixes seem to suggest uninstalling kite-vim, but I am searching first for some sort of co-existence solution, any thoughts. my platform is macmini(2018) macos v12.3.1

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

      As far as I know, they aren’t meant to be used together as they have conflicting functionality. Probably best to just choose 1

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

    For some reason file finder doesn't work for me, I get an error [Command failed: rg --files --hidden --follo... ] in the window and that's it, no files, I can only exit it with escape. Any tips?

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

      I’d need to see the full error but my guess is that you haven’t installed ripgrep. Try to run ‘brew install rg’ if you are on a Mac with homebrew installed

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

    thanks so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @o.aggelos
    @o.aggelos 2 роки тому

    Out of context, but what's your theme named? I really like it and I'm looking for good themes.

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

      I use two themes in this tutorial and I explain how to install and configure both of them in the video

    • @o.aggelos
      @o.aggelos 2 роки тому

      @@kantancoding Aight thanks

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

    What did you type to find the definition of the variable or the class in 33:27?

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

      I’m using the key mapping that we configure in this video. In the vimrc it’s set to “gd” for go to definition.

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

    hey do you have projects for c++ ??

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

    Can we have a list of themes that we can install and add? I'd like to have Dracula installed.

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

      Actually I only use these two themes so I don’t know if there’s a Dracula theme for vim 😔

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

    Do you have any video regarding you python workflow including execution and debugging?

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

      I honestly just do everything from the CLI. Is there anything specific that you want to see?

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

      @@kantancoding thanks for the reply,
      i myself love cli, but while doing python project especially the one related to data science, i always struggle with code execution especially the execution of selected part of code and debugging the code, i just can't figure it out.

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

      @@ravipratapmishra7013 This really depends on the structure of the application. Like how modular are the parts of the code that you are trying to execute? Is everything tightly coupled? Do you use dependency injection? Do you have unit tests? I find that if there's a situation where I need to debug a piece of code that is tightly coupled with the overall application, it's best to create a unit test for it with maybe some mock dependencies. Or if you are trying to debug a monolith, do you have access to local test environment? If so I'd try to hack around on my local and narrow down the issue there. There are also graphical debuggers for vim. But even when I have them installed I find that I rarely use them. But that's just my personal preference. You can have a look at github.com/puremourning/vimspector. And if I can find some time maybe I can look into planning a video for this type of thing of enough people are interested.

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

      @@kantancoding thank you for this detailed answer.

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

    please can somebody tell me hoe to log back into the admin

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

      I can try to help but I’m not sure what you mean “log back into the admin”

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

      @@kantancoding i mean you all the changes are working when you are the admin user not the original user

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

      @@manavpreetsinghcheema3094 it’s in the beginning of the video at around 6:40👍

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

    What key is leader leader??? this

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

      Hey thanks for watching., It’s in the video 👍

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

    I love you.

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

    Second video please

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

      Was there something specific that you had in mind?

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

    I really don't like this video, I feel completely scammed out of my time.
    Why didn't you named it: guy spends a lot of time not in vim.

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

      😂🤣 You are absolutely right. I will change the video name now.

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

    Yeah I'd rather just get a text editor that works rather than spend 40 minutes polishing a turd.

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

      vim is life bro. Remember that…

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo Рік тому

      Hah, if only it took 40 minutes...
      To each their own.

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

    vim .vimrc = !!
    In terminal just type that !! To run last command