Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neovim terminal emulator configuration for Windows 10

I am trying to configure Neovim for Windows. One of the key things of this configuration is getting access to the terminal-emulator (it's very comfortable to switch and use the terminal with Vim). But I can't manage to get it to work. I use Neovim binaries/Neovim-qt. I can run shell commands using ! without issue.

I also tried to experiment with shell and shellquote vars, but it doesn't work as well.

I tried to use Bash (MSYS2) instead of cmd.exe, but still no luck. (! still works)

The problem is probably the shell vars or some permissions.

I am very thankful for any help!

like image 808
Dmytro Avatar asked Feb 03 '17 13:02

Dmytro


Video Answer


1 Answers

I think using let $PATH .= ';C:\cygwin64\bin' in init.vim might be enough to deal with shell issues.

I tried the vim style as suggested in
http://vim.wikia.com/wiki/Use_cygwin_shell . And this breaks vim-fugitive and vim-plug with error prompt like /usr/bin/bash command not found (by git push, git log) or cannot create leading directory (by vim-plug when cloning repos). After I disabled them, fugitive and plug works again.

And this $TERM option might be of interest: https://neovim.io/doc/user/term.html#$TERM

like image 75
Hustlion Avatar answered Oct 13 '22 09:10

Hustlion