lambdalisue/vim-gin

Disable error message from `:Cancel` on git commit

Open

#98 aperta il 4 ago 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (13 fork)github user discovery
commandenhancementhelp wanted

Metriche repository

Star
 (171 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Currently, :Cancel followed by :Gin commit shows following error message.

image

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.

Guida contributor