Skip to content

Instantly share code, notes, and snippets.

@ctataryn
ctataryn / gvim
Last active January 24, 2020 17:34
A script that lets you execute gVim for Windows within WSL
#!/bin/bash
#################################################################
# place this script on your $PATH and chmod it to be executable
#################################################################
# assumes C:\ is mounted to /c, change any occurance of /c to /mnt/c if
# you are using the default WSL mount point for C:\
CMD='/c/Windows/System32/cmd.exe'
#location of gvim
GVIM='/c/Program Files (x86)/Vim/vim81/gvim.exe'