A Simple Vim C Setup (with no Plugins)!

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 31

  • @TimothyUnkert
    @TimothyUnkert  2 года назад +11

    You need to also add set expandtab to your vimrc for the tabs to be correct.

  • @tedburke525
    @tedburke525 Год назад +6

    Thanks, this was informative. When vim videos start talking about plugins, I just lose interest and switch off, so this was perfect for me.

  • @darklightnessful
    @darklightnessful 2 года назад +8

    Ok you have changed my life

  • @sulaimandastagir6885
    @sulaimandastagir6885 10 месяцев назад +3

    if anyone wondering what is leader then it is BACKSLASH
    and if someone is trying to use "colorcolumn=80" on windows then it will might not work instead use "nnoremap cc :set cc=80" it is working for me

  • @BS-my2ky
    @BS-my2ky Год назад +2

    I was taught to set 72 just like 'fmt' default setting because of some margin and stuff. Default VT100 terminal has only 80 total. Great simple vim setup!

  • @frenchmike
    @frenchmike Год назад +12

    very cool. I had nver seen the command :term but it's cool, so how do you switch back and forth from term to your c file ? maybe make a video on it and also how to see your local tree without leaving your c file

    • @TimothyUnkert
      @TimothyUnkert  Год назад +4

      ctrl-d will exit out of the terminal.

    •  Год назад +4

      You can also use CTRL+W CTRL+W to alternate between the two windows.

    • @NoahM21
      @NoahM21 5 месяцев назад

      Or type "exit" on the terminal

    • @vinaybhamre
      @vinaybhamre 3 месяца назад

      This works but how do I get into insert mode after pressing CTRL+W?

  • @melanovapedia7924
    @melanovapedia7924 Год назад +1

    This is what I am looking for! Thanks, Timothy👍

  • @oliviervillemin3674
    @oliviervillemin3674 10 месяцев назад +1

    You are the best ! this is what i was looking for
    Merci beaucoup 😃

  • @SB-rf2ye
    @SB-rf2ye 2 года назад +3

    you're making some great tuts. subscribed for more. vim tuts for c/c++ coding are appreciated.

  • @Harrun
    @Harrun 2 года назад +1

    Nice tutorial, this was very helpful.

  • @c0degalaxy
    @c0degalaxy Год назад +1

    You really helped. Thanks a lot man)

  • @M3LP
    @M3LP 7 месяцев назад

    And it finally worked, partially, I still can't get the color column to work.

  • @M3LP
    @M3LP Год назад +1

    This doesn’t work, is vim easily this bad? Or is it so complicated that I have to learn vsc first before ever attempting this

  • @Maxetkd
    @Maxetkd 2 года назад +1

    I have recently followed you tutorial. Everything worked just fine but the day after when I reopened the terminal, the configuration had vanished. How can I save it as a default configuration? Thank your for your work, I enjoy your channel.

  • @bengtl.5017
    @bengtl.5017 Год назад

    Can something similar be done to make vim recognize Go syntax? I tried some kind of a plugin and it failed big.

  • @Awwe12675
    @Awwe12675 Год назад

    How to make functions with vim it’s built in vim ? I want call function in it like include header file c language please make unknown English people

  • @Awwe12675
    @Awwe12675 2 года назад

    Ok u open terminal above who to open it below
    Sorry for my bad English

  • @mugiwara-no-luffy
    @mugiwara-no-luffy Год назад

    at the end, how do you switch back to vim after using the terminal?

    • @TimothyUnkert
      @TimothyUnkert  Год назад

      vim filename.filenameextension or vim . if you want to go into a certain directory.

    • @taranuki4417
      @taranuki4417 Год назад

      exit

  • @M3LP
    @M3LP Год назад

    Yeah this did not work for me, vim is not saving this at all.

    • @gabriell.1437
      @gabriell.1437 9 месяцев назад +1

      It saves a file on your computer ✌️😚✌️ did you put your .vimrc in the correct directory

    • @johnd942
      @johnd942 25 дней назад

      Make sure you have created a ".vimrc" file in your Home Directory.
      Example: In the home directory type; vim .vimrc (the 'dot' in .vimrc makes the file hidden).
      Then open the new .vimrc file with this command; vim .vimrc
      Inside the file enter all the settings as described in video.
      Then make sure you save the file using the colon symbol followed by 'w'. Like this, :w
      This instruction writes the file to disk.
      Then you can quit by typing , a colon followed by 'q'.
      You can save and quit at the same time by typing, :wq