Re: :cd and :E

2006-09-02 Thread drchip
Quoting Paul Irofti <[EMAIL PROTECTED]>:

> If I :cd to another directory and then :E to browse through I get the
> directory where the current buffer resides. Is this correct/wanted
> behavior? And if so why?

You might also want to consider setting g:netrw_keepdir=0 in your .vimrc.
By default g:netrw_keepdir is 1, which means that the current directory
is not necessarily the same as the browsing directory.  If you set it to
zero, then the current directory (that vim displays with :pwd) will be the
same as the browsing directory.

Regards,
Chip Campbell



Re: :cd and :E

2006-09-02 Thread Paul Irofti
On Sunday 03 September 2006 01:47, Max Dyckhoff wrote:
> I am so dense sometimes, I should have thought of that instantly :)
>
> Max
>
> > -Original Message-
> > From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, September 02, 2006 3:45 PM
> > To: Max Dyckhoff
> > Cc: Paul Irofti; vim@vim.org
> > Subject: Re: :cd and :E
> >
> > Max Dyckhoff wrote:
> > >>From :help :E, it looks like it is the correct behaviour.
> > >>
> > >   :Explore[!]   [dir]... Explore directory of current file
> > >
> > > If you want to explore an arbitrary directory, then just add the
> > > directory that you :cd into to the :E command. I don't know of a
>
> command
>
> > > to browse the current working directory, sorry!
> > >
> > > Max
> >
> > To browse the current directory (under Vim 7), use
> >
> > :edit ./
> >
> > I suppose
> >
> > :Explore .
> >
> > (with a dot at the end) would also work, including in earlier Vim
> > versions where Explorer was a different plugin than netrw. The
> > single dot means "the current directory".
> >
> >
> > Best regards,
> > Tony.

Hehe, I never thought of using . either, it's just what I wanted:)

Thanks a lot guys!


RE: :cd and :E

2006-09-02 Thread Max Dyckhoff
I am so dense sometimes, I should have thought of that instantly :)

Max

> -Original Message-
> From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 02, 2006 3:45 PM
> To: Max Dyckhoff
> Cc: Paul Irofti; vim@vim.org
> Subject: Re: :cd and :E
> 
> Max Dyckhoff wrote:
> >>From :help :E, it looks like it is the correct behaviour.
> >
> > :Explore[!]   [dir]... Explore directory of current file
> >
> > If you want to explore an arbitrary directory, then just add the
> > directory that you :cd into to the :E command. I don't know of a
command
> > to browse the current working directory, sorry!
> >
> > Max
> 
> To browse the current directory (under Vim 7), use
> 
>   :edit ./
> 
> I suppose
> 
>   :Explore .
> 
> (with a dot at the end) would also work, including in earlier Vim
> versions where Explorer was a different plugin than netrw. The single
> dot means "the current directory".
> 
> 
> Best regards,
> Tony.


Re: :cd and :E

2006-09-02 Thread A.J.Mechelynck

Max Dyckhoff wrote:

From :help :E, it looks like it is the correct behaviour.


:Explore[!]   [dir]... Explore directory of current file

If you want to explore an arbitrary directory, then just add the
directory that you :cd into to the :E command. I don't know of a command
to browse the current working directory, sorry!

Max


To browse the current directory (under Vim 7), use

:edit ./

I suppose

:Explore .

(with a dot at the end) would also work, including in earlier Vim 
versions where Explorer was a different plugin than netrw. The single 
dot means "the current directory".



Best regards,
Tony.


Re: :cd and :E

2006-09-02 Thread A.J.Mechelynck

Paul Irofti wrote:

Hi vim(m?)ers,

If I :cd to another directory and then :E to browse through I get the 
directory where the current buffer resides. Is this correct/wanted 
behavior? And if so why?


Thanks,
Paul.



Have you set 'autochdir'? If yes, then the directory where the current 
buffer resides _is_ the current buffer... unless you haven't changed 
buffer since the ":cd".


Fwd: Re: :cd and :E

2006-09-02 Thread Paul Irofti

It's to late apparently, it seems I only replied to Max, sorry about 
that too. :-(
--  Forwarded Message  --

Subject: Re: :cd and :E
Date: Sunday 03 September 2006 01:10
From: Paul Irofti <[EMAIL PROTECTED]>
To: "Max Dyckhoff" <[EMAIL PROTECTED]>

On Sunday 03 September 2006 01:08, you wrote:
> From :help :E, it looks like it is the correct behaviour.
>
>   :Explore[!]   [dir]... Explore directory of current file

Damn, I forgot to lookup the command in :he. Sorry about that...

> If you want to explore an arbitrary directory, then just add the
> directory that you :cd into to the :E command. I don't know of a
> command to browse the current working directory, sorry!

If anyone else knows a command that will follow the behavior I expected
please let me know, otherwise I'll just add another macro ;)

> Max
>
> > -Original Message-
> > From: Paul Irofti [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, September 02, 2006 2:59 PM
> > To: vim@vim.org
> > Subject: :cd and :E
> >
> > Hi vim(m?)ers,
> >
> > If I :cd to another directory and then :E to browse through I get
> > the directory where the current buffer resides. Is this
> > correct/wanted behavior? And if so why?
> >
> > Thanks,
> > Paul.

---


RE: :cd and :E

2006-09-02 Thread Max Dyckhoff
>From :help :E, it looks like it is the correct behaviour.

:Explore[!]   [dir]... Explore directory of current file

If you want to explore an arbitrary directory, then just add the
directory that you :cd into to the :E command. I don't know of a command
to browse the current working directory, sorry!

Max


> -Original Message-
> From: Paul Irofti [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 02, 2006 2:59 PM
> To: vim@vim.org
> Subject: :cd and :E
> 
> Hi vim(m?)ers,
> 
> If I :cd to another directory and then :E to browse through I get the
> directory where the current buffer resides. Is this correct/wanted
> behavior? And if so why?
> 
> Thanks,
> Paul.