Correctly passing a path from zsh (cygwin) to vim on windows -
i have following alias/function in .zshrc
open gvim file names arguments.
vim() { if [[ $# -ge 1 ]]; gvim "$*"; else gvim; fi }
it opens files in ~
fine, when try pass path, doesn't work. example, zsh vim ~/dir/test1.txt
(a file exists on c:\users\myname\dir\test1.txt
) , gvim opens following file \c\users\myname\dir\test1.txt
[new directory] doesn't exist? how can fix issue?
cygpath might here, this:
gvim `cygpath -w $*`
Comments
Post a Comment