1
I have installed windows vim and added the following function to my .bashrc:
function winvim() {
local win_vim_path='/cygdrive/c/Program\ Files\ \(x86\)/Vim/vim73/vim.exe'
#local win_vim_args=`cygpath -w -a "$*"`
"$win_vim_path"
}
When I type winvim I am informed that there is 'No such file or directory'. However, if I type the path explicitly in cygwin vim runs as expected.
What is wrong here?
the
\\
are going to be lost. you need to double-escape – None – 2013-06-04T19:16:08.3072@MarcB sure? IMHO he dont't need the
\
because the path is in single quotes... – jm666 – 2013-06-04T19:20:32.260but without the escapes the command will be seen as
/cygdrive/c/Program
with argumentsFiles
and(x86)/Vim/vim73/vim.exe
. – None – 2013-06-04T19:21:26.6102@MarcB Not if you quote the expansion of
win_vim_path
. – chepner – 2013-06-04T19:29:49.580