lambdalisue / lambdalisue/vim-gin
Disable error message from `:Cancel` on git commit
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 173
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Currently, :Cancel followed by :Gin commit shows following error message.
As long as users intentionally exec :Cancel, they do not need the above message, IMO.
At the same time, I understand this is compatible with doing :cq when vim opens with git commit.
> GIT_EDITOR="vim -u NORC -c 'cq'" git commit --allow-empty
hint: Waiting for your editor to close the file... error: There was a problem with the editor 'vim -u NORC -c 'cq''.
Please supply the message using either -m or -F option.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the implementation of :Cancel and :Gin commit, then trace how the plugin invokes git commit and handles GIT_EDITOR="vim -u NORC -c 'cq'". Reproduce the sequence in the issue and verify that intentionally running :Cancel no longer shows the error while the documented git commit behavior remains compatible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, typescript, vim
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100