Onelinerhub / onelinerhub

Thousands of code solutions with clear explanation @ onelinerhub.com
https://onelinerhub.com
MIT License
810 stars 161 forks source link

Short solution needed: "How to fold" (vim) #814

Closed nonunicorn closed 2 years ago

nonunicorn commented 2 years ago

Please help us write most modern and shortest code solution for this issue: How to fold (technology: vim)

Fast way

Just write the code solution in the comments.

Prefered way

  1. Create pull request with a new code file inside inbox folder.
  2. Don't forget to use comments to make solution explained.
  3. Link to this issue in comments of pull request.
RithyaReddy commented 2 years ago

@nonunicorn Sir, May I know why am I getting this error ? $ git push origin Rithya remote: Permission to Onelinerhub/onelinerhub.git denied to RithyaReddy. fatal: unable to access 'https://github.com/Onelinerhub/onelinerhub.git/': The requested URL returned error: 403

File_denied

RithyaReddy commented 2 years ago

zc

nonunicorn commented 2 years ago

That's because you should create pull requests instead of pushing changes directly.

RithyaReddy commented 2 years ago

But during that I have encountered with another error where I have searched in google and asked some of my seniors but I didn't do it intentionally.

ERROR $ git push origin RithyaReddy To https://github.com/RithyaReddy/onelinerhub.git ! [rejected] RithyaReddy -> RithyaReddy (non-fast-forward) error: failed to push some refs to 'https://github.com/RithyaReddy/onelinerhub.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

This is the error previously encountered my me sir. I am sorry sir. Sir, can you please remove the restriction and look into the the above error also.

nonunicorn commented 2 years ago

Oh, it seems like you need to git pull from your fork first, then do the push and only then - create pull request to our repository. Let me know if that helps.

RithyaReddy commented 2 years ago

@nonunicorn Thankyou sir I am able to do now

nonunicorn commented 2 years ago

How to fold on indent