Thread: [cream] Bug in Cream 0.36
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: David H. <met...@fa...> - 2006-08-06 18:22:08
|
I'm getting an error code in Cream 0.36 + Vim 7.0.34 on my NetBSD system. in my home directory, I have a folder called "My Documents" When I try to open files from that location, I get an error on startup: E172: Only one file name allowed: cd /usr/home/dave/My Documents When starting from the command line it gives some more information: Error detected while processing function Cream_cwd: Line 7: E172: Only one file name allowed: cd /usr/home/dave/My Documents E172: Only one file name allowed: cd /usr/home/dave/My Documents Looks like there may be some quotes missing from somewhere. -d |
From: Steve H. <dig...@da...> - 2006-08-06 23:58:08
|
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. > > in my home directory, I have a folder called "My Documents" > > When I try to open files from that location, I get an error on > startup: > > E172: Only one file name allowed: cd /usr/home/dave/My Documents > > When starting from the command line it gives some more information: > > Error detected while processing function Cream_cwd: > Line 7: > E172: Only one file name allowed: cd /usr/home/dave/My Documents > E172: Only one file name allowed: cd /usr/home/dave/My Documents > > Looks like there may be some quotes missing from somewhere. How you are opening it, is it via File > Open, command line, etc. ? -- Steve Hall [ digitect dancingpaper com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |
From: David H. <met...@fa...> - 2006-08-07 00:13:56
|
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. >> >> in my home directory, I have a folder called "My Documents" >> >> When I try to open files from that location, I get an error on >> startup: >> >> E172: Only one file name allowed: cd /usr/home/dave/My Documents >> >> When starting from the command line it gives some more information: >> >> Error detected while processing function Cream_cwd: >> Line 7: >> E172: Only one file name allowed: cd /usr/home/dave/My Documents >> E172: Only one file name allowed: cd /usr/home/dave/My Documents >> >> Looks like there may be some quotes missing from somewhere. > > How you are opening it, is it via File > Open, command line, etc. ? > > Both File > Open and command line. I looked at the code. I don't know the vim language so I really can't say what the problem is, but I know it doesn't happen on my Windows version. Seems to be this line: execute "cd " . fnamemodify(expand(b:cream_pathfilename), ":p:h") Maybe its Vim's fault? -d |
From: Steve H. <dig...@da...> - 2006-08-07 11:34:57
|
On Sun, 2006-08-06 at 20:14 -0400, David Howland wrote: > 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. > > > > > > in my home directory, I have a folder called "My Documents" > > > > > > When I try to open files from that location, I get an error on > > > startup: > > > > > > E172: Only one file name allowed: cd /usr/home/dave/My Documents > > > > > > When starting from the command line it gives some more > > > information: > > > > > > Error detected while processing function Cream_cwd: > > > Line 7: > > > E172: Only one file name allowed: cd /usr/home/dave/My Documents > > > E172: Only one file name allowed: cd /usr/home/dave/My Documents > > > > > > Looks like there may be some quotes missing from somewhere. > > > > How you are opening it, is it via File > Open, command line, etc. ? > > Both File > Open and command line. > > I looked at the code. I don't know the vim language so I really > can't say what the problem is, but I know it doesn't happen on my > Windows version. > > Seems to be this line: > execute "cd " . fnamemodify(expand(b:cream_pathfilename), ":p:h") Looks like it, try substituting this function: function! Cream_cwd() " maintain current working directory (called via autocmd) if exists("g:CREAM_CWD") execute 'cd ' . g:CREAM_CWD else if exists("b:cream_pathfilename") execute 'cd "' . \ fnamemodify(expand(b:cream_pathfilename), ":p:h") . '"' endif endif endfunction I'll have to test this on Windows, but it works for me on GNU/Linux. -- Steve Hall [ digitect dancingpaper com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |
From: David H. <met...@fa...> - 2006-08-07 12:48:47
|
Steve Hall wrote: > On Sun, 2006-08-06 at 20:14 -0400, David Howland wrote: >> 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. >>>> >>>> in my home directory, I have a folder called "My Documents" >>>> >>>> When I try to open files from that location, I get an error on >>>> startup: >>>> >>>> E172: Only one file name allowed: cd /usr/home/dave/My Documents >>>> >>>> When starting from the command line it gives some more >>>> information: >>>> >>>> Error detected while processing function Cream_cwd: >>>> Line 7: >>>> E172: Only one file name allowed: cd /usr/home/dave/My Documents >>>> E172: Only one file name allowed: cd /usr/home/dave/My Documents >>>> >>>> Looks like there may be some quotes missing from somewhere. >>> How you are opening it, is it via File > Open, command line, etc. ? >> Both File > Open and command line. >> >> I looked at the code. I don't know the vim language so I really >> can't say what the problem is, but I know it doesn't happen on my >> Windows version. >> >> Seems to be this line: >> execute "cd " . fnamemodify(expand(b:cream_pathfilename), ":p:h") > > Looks like it, try substituting this function: > > > function! Cream_cwd() > " maintain current working directory (called via autocmd) > > if exists("g:CREAM_CWD") > execute 'cd ' . g:CREAM_CWD > else > if exists("b:cream_pathfilename") > execute 'cd "' . > \ fnamemodify(expand(b:cream_pathfilename), ":p:h") . '"' > endif > endif > > endfunction > > 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? -d |