Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have opened a dir vim some/dir. I can navigate within the tree, yet once I opened a file I wonder, how do I close the file view in order to go back to the directory listing to navigate to another file. :wq is no option, as it closes the whole vim session. I guess there is a for mode to that, yet I do not know what it is called nor how I start it.

How to close the file to file navigation view?

share|improve this question
I didn't realise you could browse files from that folder view in vim. +1 – Alex Leach Oct 18 '12 at 11:13
up vote 11 down vote accepted

How about :e .? This opens the current directory in Vim, i.e. it opens the file explorer. Because I have autochdir setting set, this shows the directory that the currently edited file is in.

share|improve this answer
Alternatively, :E has the same effect. – Jochem Schulenklopper Nov 1 '15 at 12:37

I'm not sure but I think that you want the :rew command

share|improve this answer
+1 for rewind command – warl0ck Oct 18 '12 at 10:58
You could give some additional details, telling that it comes from :rewind and it “Start editing the first file in the argument list.” – manatwork Oct 18 '12 at 11:00

Use ^O to fallback previous opened file, which is your dir tree in this case.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.