My Competitive Programming Setup

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

КОМЕНТАРІ • 66

  • @90125iahg
    @90125iahg Рік тому +6

    Great video! I'm moving full vim while learning cpp so this was super useful

  • @pnt469
    @pnt469 10 місяців тому +1

    The vim plug-in look promises, bro. Thank you 🎉

  • @DmitriyBlokhin
    @DmitriyBlokhin 2 роки тому +4

    Yeaah, I love vim! Thank you.

  • @rishabh507
    @rishabh507 3 роки тому +7

    Thanks a lot !

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

    Thank you! You made another video on cp related. Please make more!

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

    love your vimrc!

  • @uzdik.student
    @uzdik.student 20 днів тому

    1:25 Have you considered upgrading to MacBook Pro 14 inch which doesn't have a touch bar anymore?

  • @uzdik.student
    @uzdik.student 20 днів тому

    0:50 Do you also use this laptop for video editing?

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

    Very informative! Good job!

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

    Very helpful

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

    super helpful thanks.

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

    great video sir.. OFZ

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

    Waiting for more videos in Everything you need to know about.. playlist

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

    Atmost how many Vim commands do you require for contests?

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

      you only need the basic commands as long as you are efficient with it

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

    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.

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

      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

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

    Whenever I press Function keys actual functions like (sound ,brightness ,spotlight) are working instead of mapped commands

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

      It can be changed in settings. Or you can just press “fn+functional key”

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

      @@peltorator Thank you Brother Its working 🙃

  • @boundless-sher
    @boundless-sher 3 роки тому +3

    vim gang 😎

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

    Which keyboard u use if u have to buy one

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

      I don't use any external keyboard. Just a builtin laptop keyboard.

  • @RavisLifeCircle
    @RavisLifeCircle 4 місяці тому

    how to add bits/stdc++.h for macvim and g++ ?

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

    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?

  • @icb6048
    @icb6048 5 місяців тому

    I can't find .vim/plugged file....

  • @TheArchit1
    @TheArchit1 2 роки тому +8

    Having so much code templatized honestly looks like an overkill.

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

      @@azurnxo2134 have you made one yet?

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

      @@azurnxo2134 How is it going ? :eyes:

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

      @@azurnxo2134 where'd u reached?

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

      @@ashokKumar-ej1fd 😂😂

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

    make more video about c++

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

    the comments in the codeforces blog lol

  • @ShubhamKumar-me7xy
    @ShubhamKumar-me7xy 3 роки тому

    When will we getting another video?

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

      I want to believe that this month :)

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

    Does this work the same on windows?

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

    Hey man, what are your plans after graduation? Will you go for an academic career or work in industry?

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

    Hey, in your cpp build command what is the use of -fsanitize=address, I googled but didn't find a thing!

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

      It's a sanitizer. Should be googleable. Helps to avoid undefined behavior when something goes wrong and crushes instead.

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

      @@peltorator ohh, i Google it, but didn't get anything.

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

      @@pranjalverma1348 another comment said that remove the fsanitize it'll work

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

    Brother Autodesk sketchbook is no longer available now.
    What can I do now?

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

      Oh wow. Probably this now: www.sketchbook.com/

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

    Make a video on your CP journey

  • @DevSharma-yp6xh
    @DevSharma-yp6xh 3 роки тому +1

    which site/online judges you use for problem solving other than Codedorces?

    • @peltorator
      @peltorator  3 роки тому +4

      Atcoder is great. I used to really like csacademy but it seems like it doesn't host contests anymore.

    • @DevSharma-yp6xh
      @DevSharma-yp6xh 3 роки тому +1

      @@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) ?

    • @peltorator
      @peltorator  3 роки тому +4

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

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

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

    is it wrong to use mt19937 rnd(random_device{}());?

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

      Random_device on windows always returns the same number (it’s deterministic)

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

      @@peltorator thank u!

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

    Could you make a video about the hot keys you are using in vim?

  • @user-zj1eg3ej3p
    @user-zj1eg3ej3p 3 роки тому +9

    Do you forget your native language? Rusofob

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

    [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
      @peltorator  Рік тому +1

      codeforces.com/blog/entry/109017

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

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

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

      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.

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

      @@peltorator I figured it out. "-fsanitize=address" was causing the harm, I removed it and it works fine. Thanks!!

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

      ​@@runzshwas your setup successful?