Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:27:59+00:00 2026-06-10T17:27:59+00:00

okay, i will make this more clear here.. say i have the directory listing

  • 0

okay, i will make this more clear here..
say i have the directory listing in a vertical split window, along with the file i’m editing..

i can go from one split to the other using Ctrl+w
and open files in the file listing using netrw plugin in four ways..
using return key, v, o, t..

with return key, it opens in the current(netrw) split window..
with v, it creates a new vertical split..(same with o(horizontal split), t(new tab))

but i want the file to be opened in the other split that is already there, where i do all the editing..instead of opening a new split.. i hope my question is clear.. say by typing a command, the highlighted file will open in the editing split instead of the netrw split..
there must be some easy solution to this.. or can someone tell me the best way to use netrw.. i will try to adapt..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:28:01+00:00Added an answer on June 10, 2026 at 5:28 pm

    The answer is in the doc: :h netrw. As usual.

    You are looking for P:

    To edit a file or directory in the previously used (last accessed) window (see
    :he CTRL-W_p), press a "P".  If there's only one window, then the one window
    will be horizontally split (above/below splitting is controlled by
    g:netrw_alto, and its initial size is controlled by g:netrw_winsize).
    
    If there's more than one window, the previous window will be re-used on
    the selected file/directory.  If the previous window's associated buffer
    has been modified, and there's only one window with that buffer, then
    the user will be asked if s/he wishes to save the buffer first (yes,
    no, or cancel).
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OKay, I will try to make this make sense lol. Basically I have 4
I hope this is okay to ask here as its more a request for
Okay, so this will probably be closed or whatever, I don't care. I have
Okay so I'm trying to make a little gag program that will run away
Okay so I'm make a program where I will be universally accepting cocoa trackpad
Okay, this scenario is a little complicated, but I will try to explain it
Okay, so this one may be difficult but I will do my best to
Okay, here's my short question: I know that === and !== operators will compare
Okay, here goes. Stack Overflow virgin here but hopefully you guys will be able
Okay this question is very simple: I have a facebook page, and a website.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.