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

Git commit fails using neovim #44

Open
ggeorgakoudis opened this issue Aug 8, 2017 · 4 comments
Open

Git commit fails using neovim #44

ggeorgakoudis opened this issue Aug 8, 2017 · 4 comments

Comments

@ggeorgakoudis
Copy link

Git commit fails when vim-grammarous is loaded, it's fine otherwise. The version of neovim is v0.2.0 and I'm running on a mac: Darwin mac 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64.

The error is:

error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.

Doing echo $? immediately after exiting vim shows a return value of 1

@rhysd
Copy link
Owner

rhysd commented Aug 8, 2017

Thank you for reporting this. I haven't seen this ever.

Git commit fails

Could you please describe more defails what 'fails' means? What is a timing of the error? Where the error message was output? (to stdout? or message area in nvim?) And please tell me your config of vim-grammarous. I need to reproduce to fix the error.

@ggeorgakoudis
Copy link
Author

ggeorgakoudis commented Aug 9, 2017

When you do git commit in a repo and without providing a message using -m, the editor of choice opens up to write your commit message. My editor is neovim and I'm using the vim-grammarous plugin, which is great by the way. After I write my commit message and save and quit in vim (:wq), then this error message appears on the command line. Doing an echo $? shows a return value of 1, which signifies an error. Committing of course fails.

Happy to provide any more information you need.

@rhysd
Copy link
Owner

rhysd commented Aug 9, 2017

Thank you for details. Do you write any config for vim-grammarous in your init.vim?

@ggeorgakoudis
Copy link
Author

No, I don't have any configuration for vim-grammarous in the init.vim

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

2 participants