I am running Windows 10 on my Surface Pro 3. I installed Cygwin and also added some useful packages (gvim, nedit, emacs, vim, g++). However, when I run gvim, I get "Can't open display". The same thing happens with nedit. When I did echo $DISPLAY, I showed nothing so I set the DISPLAY to :0.0. I still get "can't open display." I tried removing cygwin and re-installing but I get the same problem.
Windows – Cygwin on Windows: Can’t open display
cygwin;displaywindows
Best Answer
Unix GUI programs display through an X server. Cygwin doesn't automatically start an X server. You need to install the packages
xorg-server
andxinit
, and runstartxwin
.