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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -