In Console2, you can set arbitrary environment variables by changing the shell call (in the Options dialog box or directly in the XML configuration). For the default Windows command line, use the value:
cmd.exe /K set EMULATOR=console2
For Cygwin Bash, something like this should work:
C:\cygwin\bin\bash.exe -c "export EMULATOR=console2; exec /bin/bash -i"
Then check the value of $EMULATOR in the conditional expression in .vimrc , as indicated in the response letter.
source share