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!
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
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
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.
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
You need to also add set expandtab to your vimrc for the tabs to be correct.
Can you help me,when i create a c file the file is default,what should i do??//??
Thanks, this was informative. When vim videos start talking about plugins, I just lose interest and switch off, so this was perfect for me.
Ok you have changed my life
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!
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
This is what I am looking for! Thanks, Timothy👍
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
ctrl-d will exit out of the terminal.
You can also use CTRL+W CTRL+W to alternate between the two windows.
Or type "exit" on the terminal
This works but how do I get into insert mode after pressing CTRL+W?
You are the best ! this is what i was looking for
Merci beaucoup 😃
you're making some great tuts. subscribed for more. vim tuts for c/c++ coding are appreciated.
And it finally worked, partially, I still can't get the color column to work.
You really helped. Thanks a lot man)
Nice tutorial, this was very helpful.
Can something similar be done to make vim recognize Go syntax? I tried some kind of a plugin and it failed big.
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.
Did you save your .vimrc?
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
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
at the end, how do you switch back to vim after using the terminal?
vim filename.filenameextension or vim . if you want to go into a certain directory.
exit
Ok u open terminal above who to open it below
Sorry for my bad English
set splitbelow
@the you're the crapman
Yeah this did not work for me, vim is not saving this at all.
It saves a file on your computer ✌️😚✌️ did you put your .vimrc in the correct directory
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