Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Does NERDTree have a stack to track opened files? I want to go back to previous file easily(As like ctags does by Ctrl+T).
But I can't find the feature in it's manual. Is it even possible?

share|improve this question
up vote 3 down vote accepted

NERDtree doesn't offer this feature but you can do :bp to reopen the previous buffer if it's still in the buffer list or use Vim's jump list (:h jump) with <C-o> and <C-i>. Another solution, if you want to reach those files often, would be to use NERDTree's bookmarking feature.

A few plugins offer some kind of MRU (Most Recently Used) abilities.

You could also learn to navigate between buffers with :b <Tab> or :ls<CR>:b<Space> or use a neat buffer switching plugin like CtrlP or LustyExplorer.

share|improve this answer
thank you! that's exactly what I wanted. – Benjamin Jun 11 '12 at 1:12
Well, what solution did you use? I've offered 7 of those. – romainl Jun 11 '12 at 5:18
:bp and jump list :) – Benjamin Jun 11 '12 at 7:56
I think your few plugins hyper-link is wrong, though. – Benjamin Jun 11 '12 at 7:57
Oops. Answer edited. – romainl Jun 11 '12 at 11:42

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.