lambdalisue/vim-gin

Disable error message from `:Cancel` on git commit

Open

#98 opened on 2023年8月4日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)TypeScript (13 forks)github user discovery
commandenhancementhelp wanted

Repository metrics

Stars
 (171 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド