0

I know there's a number of ways you can suspend a Neovim/Vim session.

One way being CTRL-Z to jump back into the command prompt, and press fg and ENTER to go back into your Neovim/Vim session.

However....Doing this on Windows seems to freeze my console entirely to the point where I have to end the process by force. I don't want to use the :! command in neovim because that's not what I'm trying to do, and the :sus command essentially does the same thing as CTRL-Z.

Is there a way to do this on Windows ? I know for sure that it can be done on Linux, and from a little research apparently CTRL-Z means end of input on DOS/Windows machines.

EDIT: 3/12/18 Also, as additional info I used both ConEmu and the default Windows command line

EDIT: 3/14/18 Using the :shell or :sus command seems to get it to work fine in regular vanilla Vim 8.0 in combination with exit, but that's only in regular Vim. CTRL-Z also works as well if I edit my _vimrc to get rid of source $VIMRUNTIME/mswin.vim and behave mswin. I still will like this to be able to work in neovim

  • 1
    How do you use Neovim on Windows? Do you use it in cygwin (where ctrl-z should work), in the Windows Linux subsystem, in a Windows command line, etc? – statox Mar 12 '18 at 8:01
  • @statox I tried it in ConEmu and in the default Windows command line – PrimRock Mar 12 '18 at 8:19
  • It's worth adding this info to your question. I don't really know how to help you with this issue, but knowing which terminal emulator you use will help other people to help you :) – statox Mar 12 '18 at 8:59
  • FWIW, this works fine for me (using either Ctrl-Z or :sus) in regular Vim 7.4, running both under the Windows Command Prompt or in the bash provided by Git for Windows (on Windows 10). You might also like to try :shell which does something slightly different but similar. – Rich Mar 13 '18 at 10:03
  • It's always worked for me in Vim. One difference is that to exit the shell in Windows, you execute exit instead of fg. – dash-tom-bang Mar 13 '18 at 17:40
0

I found an answer, and apparently suspending the console doesn't work on Windows TUI as of yet.

https://github.com/neovim/neovim/issues/6660

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.