A Simple Vim C Setup (with no Plugins)!

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

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

  • @TimothyUnkert
    @TimothyUnkert  3 года назад +12

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

    • @Masimtnorocos12
      @Masimtnorocos12 Месяц назад

      Can you help me,when i create a c file the file is default,what should i do??//??

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

    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 года назад +10

    Ok you have changed my life

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

    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!

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

    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

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

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

  • @frenchmike
    @frenchmike 2 года назад +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  2 года назад +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 7 месяцев назад

      Or type "exit" on the terminal

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

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

  • @oliviervillemin3674
    @oliviervillemin3674 Год назад +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.

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

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

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

    You really helped. Thanks a lot man)

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

    Nice tutorial, this was very helpful.

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

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

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

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

    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

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

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

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

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

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

    • @gabriell.1437
      @gabriell.1437 Год назад +1

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

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

      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