Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
I didn't realise you could browse files from that folder view in vim. +1 –  Alex Leach Oct 18 '12 at 11:13

3 Answers 3

up vote 4 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

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
1  
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

 
discard

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.