thank you peltorator, and I think you may want do c comment better this way: noremap / ^i// " comment cpp noremap \ ^xxxh " uncomment cpp, h moves cursor to first char of comment this will comment/uncommnet before the first char which is not space, not the start of current line.
@@peltorator you reached CM - Master level on Codeforces very quick.. Did you used to solve problems on other sites before CF like Timus( which is popular in Russia) ?
@@DevSharma-yp6xh I think timus was popular like 10 years ago lol. I used to go to CP courses and summer camps in high school. They gave me some problems to solve. Also back then I used to compete on CodeChef sometimes (or even topcoder).
[Solved] I am using macvim on Macos ventura, I have done tried many ways but getting error while running c++ code with #include @peltorator or anyone in community could you please help thanks FYI I have already pasted bits folder in these directories already, /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ /usr/local/include /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include /Library/Developer/CommandLineTools/usr/include /Library/Developer/CommandLineTools/usr/bin input: #include //#include using namespace std; int main() { cout
@peltorator Thanks mate, this was a great help. I spent time with your .vimrc and understood most of the commands/ shortcuts but still couldn't figure out the most important shortcut/command to compile and run, i.e. F9, F10. It gives me following error after pressing: :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o a a.cpp && ./a ld: library not found for -lasan collect2: error: ld returned 1 exit status shell returned 1 googling the above error didn't help a bit. I suspect there might be some directory mismatch which I couldn't figure out in your .vimrc, as I straightaway copy pasted it. Also, I couldn't find out where "inp" file has to be stored in order to feed it as input using the F10 command. Please Help!!
Hi! I don't really know what is the problem. I am not a pro in all this stuff and I don't know what to do if google doesn't help you :) Regarding inp file, it should be located just in the same directory as the cpp file you're trying to run. Thanks for your feedback.
Great video! I'm moving full vim while learning cpp so this was super useful
The vim plug-in look promises, bro. Thank you 🎉
Yeaah, I love vim! Thank you.
Thanks a lot !
Thank you! You made another video on cp related. Please make more!
love your vimrc!
hey bhaii
1:25 Have you considered upgrading to MacBook Pro 14 inch which doesn't have a touch bar anymore?
0:50 Do you also use this laptop for video editing?
Very informative! Good job!
Very helpful
super helpful thanks.
great video sir.. OFZ
Waiting for more videos in Everything you need to know about.. playlist
Atmost how many Vim commands do you require for contests?
you only need the basic commands as long as you are efficient with it
thank you peltorator, and I think you may want do c comment better this way:
noremap / ^i// " comment cpp
noremap \ ^xxxh " uncomment cpp, h moves cursor to first char of comment
this will comment/uncommnet before the first char which is not space, not the start of current line.
btw, 'I' lets you insert at the start of current line while 'A' appends at the end. That saves one key stoke compared with 0i and $a
Whenever I press Function keys actual functions like (sound ,brightness ,spotlight) are working instead of mapped commands
It can be changed in settings. Or you can just press “fn+functional key”
@@peltorator Thank you Brother Its working 🙃
vim gang 😎
Which keyboard u use if u have to buy one
I don't use any external keyboard. Just a builtin laptop keyboard.
how to add bits/stdc++.h for macvim and g++ ?
hi when i get an error message on macvim i cant scroll up 😢do u get the same problem and how should i solve it?
I can't find .vim/plugged file....
Having so much code templatized honestly looks like an overkill.
@@azurnxo2134 have you made one yet?
@@azurnxo2134 How is it going ? :eyes:
@@azurnxo2134 where'd u reached?
@@ashokKumar-ej1fd 😂😂
make more video about c++
the comments in the codeforces blog lol
When will we getting another video?
I want to believe that this month :)
Does this work the same on windows?
Hey man, what are your plans after graduation? Will you go for an academic career or work in industry?
Money and girls
@@sandeepsharma3411 chad
Hey, in your cpp build command what is the use of -fsanitize=address, I googled but didn't find a thing!
It's a sanitizer. Should be googleable. Helps to avoid undefined behavior when something goes wrong and crushes instead.
@@peltorator ohh, i Google it, but didn't get anything.
@@pranjalverma1348 another comment said that remove the fsanitize it'll work
Brother Autodesk sketchbook is no longer available now.
What can I do now?
Oh wow. Probably this now: www.sketchbook.com/
Make a video on your CP journey
which site/online judges you use for problem solving other than Codedorces?
Atcoder is great. I used to really like csacademy but it seems like it doesn't host contests anymore.
@@peltorator you reached CM - Master level on Codeforces very quick.. Did you used to solve problems on other sites before CF like Timus( which is popular in Russia) ?
@@DevSharma-yp6xh I think timus was popular like 10 years ago lol. I used to go to CP courses and summer camps in high school. They gave me some problems to solve. Also back then I used to compete on CodeChef sometimes (or even topcoder).
❤
is it wrong to use mt19937 rnd(random_device{}());?
Random_device on windows always returns the same number (it’s deterministic)
@@peltorator thank u!
Could you make a video about the hot keys you are using in vim?
Should be in .vimrc
Do you forget your native language? Rusofob
тебя это так тригерит ахахах
😂
[Solved]
I am using macvim on Macos ventura, I have done tried many ways but getting error while running c++ code with #include
@peltorator or anyone in community could you please help thanks
FYI
I have already pasted bits folder in these directories already,
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/
/usr/local/include
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/usr/include
/Library/Developer/CommandLineTools/usr/bin
input:
#include
//#include
using namespace std;
int main() {
cout
codeforces.com/blog/entry/109017
@peltorator Thanks mate, this was a great help. I spent time with your .vimrc and understood most of the commands/ shortcuts but still couldn't figure out the most important shortcut/command to compile and run, i.e. F9, F10.
It gives me following error after pressing:
:!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o a a.cpp && ./a
ld: library not found for -lasan
collect2: error: ld returned 1 exit status
shell returned 1
googling the above error didn't help a bit. I suspect there might be some directory mismatch which I couldn't figure out in your .vimrc, as I straightaway copy pasted it.
Also, I couldn't find out where "inp" file has to be stored in order to feed it as input using the F10 command. Please Help!!
Hi! I don't really know what is the problem. I am not a pro in all this stuff and I don't know what to do if google doesn't help you :)
Regarding inp file, it should be located just in the same directory as the cpp file you're trying to run.
Thanks for your feedback.
@@peltorator I figured it out. "-fsanitize=address" was causing the harm, I removed it and it works fine. Thanks!!
@@runzshwas your setup successful?