Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a window split in four; two by two; and in the upper left split netrw is open.

How do I open a file from netrw in split no. 3 (the lower right one)?

share|improve this question

2 Answers 2

If you are in normal mode, you can type this to open "filename" in the lower right window

:exe 4 . "wincmd w|e filename"
share|improve this answer

You might like to try netrw v153j:

  • let g:netrw_chgwin= window number you'd like editing to take place in
  • when in a netrw buffer: [count]C will use the count as the window number specifying which window to use for editing
  • :NetrwC [winnr] will select the specified window number for subsequent editing

You can get v153j from http://www.drchip.org/astronaut/vim/index.html#NETRW

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.