From: Steve Hall <digitect@da...> - 2006-08-07 16:32:47
From: David Howland, Mon, August 07, 2006 8:48 am
> Steve Hall wrote:
> > > > On Sun, 2006-08-06 at 14:22 -0400, David Howland wrote:
> > > > >
> > > > > I'm getting an error code in Cream 0.36 + Vim 7.0.34 on my
> > > > > NetBSD system.
[paths with spaces]
> > > > > Looks like there may be some quotes missing from somewhere.
> > Looks like it, try substituting this function:
> > I'll have to test this on Windows, but it works for me on
> > GNU/Linux.
> That seems to have fixed it, thanks!! Now, I guess the questions
> is, why haven't I noticed this before now?
Good question, I'm sure I've used paths with spaces on *nix before,
but I don't remember seeing this.
For those following along, the function needed conditioning for
" maintain current working directory (called via autocmd)
execute 'cd "' . g:CREAM_CWD . '"'
" quote unix (escaping is harder)
execute 'cd ' .
\ fnamemodify(expand(b:cream_pathfilename), ":p:h")
execute 'cd "' .
\ fnamemodify(expand(b:cream_pathfilename), ":p:h") . '"'
Steve Hall [ digitect dancingpaper com ]
:: Cream... something good to put in your Vim!