Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commiting a git message? #94

Closed
TheMeaningfulEngineer opened this issue Dec 15, 2018 · 2 comments
Closed

Commiting a git message? #94

TheMeaningfulEngineer opened this issue Dec 15, 2018 · 2 comments

Comments

@TheMeaningfulEngineer
Copy link
Contributor

I have set the following command as the docs state:

config --global core.editor 'nvr --remote-wait-silent'

and it does correctly open the commit message editor in a separate buffer
instead of a nested vim.
It isn't clear on how to actually commit the message once you're done writing it.
During normal usage I would use wq but this results in closing vim and the message not committed
to git.

@mhinz
Copy link
Owner

mhinz commented Dec 16, 2018

Yup, you have to save and delete (:w | bd) the commit buffer instead.

You can check the following: :au nvr BufDelete. When the buffer gets deleted, an RPC method will notify nvr that the work is done and that nvr can return now.

@aemonge
Copy link

aemonge commented Oct 20, 2022

Would this work?

   autocmd! FileType gitrebase setlocal nohidden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants