How to move previous opened file in NERDTree?

5,649

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:
5,649

Related videos on Youtube

Benjamin
Author by

Benjamin

직장인들을 위한 소개팅 서비스 커피한잔을 개발, 운영하고 있습니다.

Updated on September 18, 2022

Comments

  • Benjamin
    Benjamin over 1 year

    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?

  • romainl
    romainl almost 12 years
    Well, what solution did you use? I've offered 7 of those.
  • Benjamin
    Benjamin almost 12 years
    :bp and jump list :)
  • Benjamin
    Benjamin almost 12 years
    I think your few plugins hyper-link is wrong, though.
  • romainl
    romainl almost 12 years
    Oops. Answer edited.
  • Cleod9
    Cleod9 almost 10 years
    Thanks, helped me too. I just clicked the window then chose the file from the list of buffers in the Buffers-menu, but your answer helped me to remember that it existed ;)