1

I'm trying to get Neovim to work in Git bash. When I type nvim in cmd, everything works as expected and it opens Neovim, when I do the same in the Git bash, the whole editor just turns blank until I CTRL+C out of it. I suppose that there might be some pathing problem, but I'm not sure. I attached some images as well.

I've tried to add the path to Neovim in gitconfig in the Git folder and in the home folder as well.

which nvim gives: /c/Program Files/Neovim/bin/nvim

image1 - Gitbash

image2 - Gitbash

Cmd - works

1
1

Got it working and found two solutions.

  1. Reinstall bash and set Neovim as a default editor during the installation (Git has a test feature to make sure your editor is working even during installation)
  2. in $home find .gitconfig and add the path to your editor, but use two escapes \\ when there is space, e.g. C:/Program\\ Files/...
1
  • I think the issue has to do with tty. I'm experiencing the same issue but reinstalling git bash doesn't seem to work. However, running winpty nvim does
    – CervEd
    Mar 7 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.