Suppose I have 4 split windows with window number 1 the file explorer and window number 2-4 different file buffers. Can I have NERDTree open a new file in a selected window, say window number 4? I know in netrw I can do 4C<CR>, but I failed to find similar option in NERDTree.


1 Answer 1


The o command open the file in the previous window.

I would from the NERDTree window:

  • Hit 4Ctrl ww to visit window 4
  • Hit Ctrl wp to switch back to NERDTree
  • Hit o to open the file

It would be possible to create a special mapping for that if needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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