[vim/vim] Netrw's `:Explore` and `:Sexplore` are not in context of current file (Issue #20721)

1 view
Skip to first unread message

Joey Smalen

unread,
Jul 5, 2026, 4:19:25 PM (11 hours ago) Jul 5
to vim/vim, Subscribed
QSmally created an issue (vim/vim#20721)

Steps to reproduce

  1. Make a directory in the CWD: mkdir test
  2. Make a file inside that directory: touch test/foobar
  3. Open Vim: vim test/foobar (foobar's directory is test, not CWD of Vim)
  4. Execute :Explore or :Sexplore; Netrw is opened with Vim's CWD, not test

Expected behaviour

Netrw's :Explore and :Sexplore should open in the directory of the current window's file directory (as documented in :help), and not in Vim's CWD if they differ. Prior to Vim 9.2 (or 9.1) this behaviour was correctly present.

Version of Vim

Vim 9.2. Included patches: 1-750. Compiled by Homebrew on Jun 28.

Environment

Operating system: macOS 26.5.1
$TERM: xterm-256color
Shell: bash 3.2.57

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20721@github.com>

Reply all
Reply to author
Forward
0 new messages