For those who want to go the X server route, let me leave my notes here.
- Install VcXsrv (I found that Xming is outdated on sourceforge and the new version is donationware)
- If it starts after installing, stop it
- Start it using XLaunch (search in the start menu), go with all the defaults (ensure the clipboard options are checked)
- At the end, save the configuration to a file (use that to start it from now on)
- Put
export DISPLAY=localhost:0.0
in your.bashrc
in bash for Windows (and run the command in any open bash windows). The reason I explicitly say localhost is that this makes SSH X forwarding work, see below. - Ensure vim is installed using clipboard support.
vim --version | grep clipboard
should say+clipboard
, not-clipboard
. Also if you run the ex command:echo has('clipboard')
in vim and it says0
it does not have clipboard support compiled in. If you don't have clipboard support, install thevim-gtk
package (`apt-get install vi