Skip to content

Instantly share code, notes, and snippets.

@rctay
Created July 27, 2010 05:17
Show Gist options
  • Save rctay/491775 to your computer and use it in GitHub Desktop.
Save rctay/491775 to your computer and use it in GitHub Desktop.
[cygwin] win32 vim wrapper
#
# Wraps Win32 vim, converting cygwin paths to windows ones; after saving this,
# you can setup the alias vim
#
# alias vim=~/vim-cyg
#
# and just type "vim path/to/file" instead of the full path to this script.
#
# Note: You can't set your EDITOR environment variable to the alias though.
#
# Modify your path to vim appropriately.
/cygdrive/c/tools/vim/vim72/vim.exe $(cygpath -w "$1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment