On 2006-11-04, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> On 11/3/06, Jean-Rene David <[EMAIL PROTECTED]> wrote:
> > Say I open vim7's new super duper file explorer
> > "netrw" to browse some local directory. Say then I
> > decide I don't want to open any new file and just
> > want to go back to what I was doing. What would be
> > the standard way to do that?
> >
> > I can use <C-O> to eventually land up where I was
> > but I need to backtrack all the motion commands I
> > did in the netrw buffer.
> >
> > I thought of using :q but that closes vim if only
> > one window is open.
> >
> > Am I missing something obvious?
> >
> 
> You can try using CTRL-^ to jump to the alternate buffer.
> 
> But for some reason, this doesn't work right after starting
> up Vim. It works after that.
> 
>    $ vim xyz.txt
>    :e .
> 
> If you press CTRL-^ now to jump to the alternate buffer,
> it says, "E23: No alternate file". But if you do the following,
> then it works.
> 
>    $ vim xyz.txt
>    :e .
>    :e xyz.txt
> 
> Now, you can use CTRL-^ to jump between netrw buffer
> and xyz.txt file.
> 
> This looks like a bug in netrw.

Your first example works fine for me, whether xyz.txt exists or not.  
It may be that you have an old version of netrw.  I'm using version 
103g.

Regards,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Wireless Division
                             | Spokane, Washington, USA

Reply via email to