[vim/vim] netrw: Refreshing tree view from Lexplore opens a second netrw over existing buffer (#5964)

628 views
Skip to first unread message

Sean Moogan

unread,
Apr 21, 2020, 9:16:41β€―PM4/21/20
to vim/vim, Subscribed

Describe the bug
Trying to refresh a directory listing in tree view causes a second netrw to open in the window of previous buffer

To Reproduce
Detailed steps to reproduce the behavior:

  1. Run vim -u .vimrc testfile using this vimrc:
set nocp
let g:netrw_liststyle = 3
  1. Invoke :Lexplore
  2. Press <c-l> to refresh the directory listing
  3. The window which contained testfile now shows a second netrw window

Expected behavior
Per the netrw-refresh documentation, <c-l> should refresh the directory listing in the current window.

Screenshots
netrw refresh issue

Environment

  • Vim version 8.2.0510-1
  • OS: Manjaro 20.0
  • Terminal: urxvt & gvim

β€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

czardien

unread,
Jul 12, 2021, 9:37:44β€―AM7/12/21
to vim/vim, Subscribed

Hi @smoogan, I just stumbled onto this as I was setting up my netrw and I'm seeing the same behaviour, and I'm also thinking I'd like the new listing to be displayed in the current window instead of a new one.

Have you found any workaround for this?

@k-takata have you got any idea what we could do here? I couldn't find anything in the docs.

Christian Brabandt

unread,
Jul 12, 2021, 9:41:09β€―AM7/12/21
to vim/vim, Subscribed

You could try the latest development version from dr. Chip, available here: http://www.drchip.org/astronaut/vim/index.html#NETRW
ping @cecamp

czardien

unread,
Jul 12, 2021, 12:27:28β€―PM7/12/21
to vim/vim, Subscribed

Hi @chrisbra, thanks for that πŸ‘‹ I installed this and I just tried vanilla configuration, and dr. Chip options without luck so far, <ctrl+L> still refreshes the directory listing, I'm still looking into the help section.

mprt

unread,
Jan 4, 2023, 7:21:04β€―AM1/4/23
to vim/vim, Subscribed

still the same with netrw v171 and vim 9.0.749 :/

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1370861031@github.com>

cecamp

unread,
Jan 4, 2023, 3:13:05β€―PM1/4/23
to vim/vim, Subscribed

Well, I just don't see anything wrong. I used the following file:

set nocp
set hidden
let g:netrw_liststyle= 3
let g:netrw_maxfilenamelen= 40
so $HOME/.vim/plugin/netrwPlugin.vim

and used vim -u lexpl.vimrc somefile, then :Lexplore. Pressing ctrl-l did not affect the display.

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1371371173@github.com>

Ashvith10

unread,
Jun 14, 2023, 3:58:09β€―PM6/14/23
to vim/vim, Subscribed

This issue still persists, only in tree mode. Are there no patches for these yet?

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1591889452@github.com>

Christian Brabandt

unread,
Jun 15, 2023, 2:42:34β€―AM6/15/23
to vim/vim, Subscribed

Can you help to reproduce this with some simple steps to help getting this fixed?

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592454945@github.com>

Ashvith10

unread,
Jun 15, 2023, 3:27:49β€―AM6/15/23
to vim/vim, Subscribed

@chrisbra I am not sure why this issue is being triggered, so unfortunately, I won't be able to share a way to reproduce this issue. However, I can share the log files.

vim.log

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592507381@github.com>

Christian Brabandt

unread,
Jun 15, 2023, 3:53:28β€―AM6/15/23
to vim/vim, Subscribed

can you not provide steps you do to reproduce this?

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592545883@github.com>

Ashvith10

unread,
Jun 15, 2023, 4:00:38β€―AM6/15/23
to vim/vim, Subscribed

Here's the following step, along with a screencast @chrisbra :

  1. cd to a project directory and open vim
  2. Open file explorer using :Lexplore
  3. Create a directory test
  4. Press Ctrl + l to refresh

Screencast from 2023-06-15 13-25-41.webm

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592557257@github.com>

mprt

unread,
Jun 15, 2023, 4:21:51β€―AM6/15/23
to vim/vim, Subscribed

Note: Step 3 is not necessary, it is however necessary to be in Tree-View-mode.

  1. start vim
  2. :Lex
  3. Press i three times to cycle to tree view
  4. Ctrl + l

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592588429@github.com>

Erik Corry

unread,
Jun 15, 2023, 5:02:46β€―AM6/15/23
to vim...@googlegroups.com, reply+ACY5DGELYMIIR4P4J4...@reply.github.com, vim/vim, Subscribed
I have a description of the same issue with steps to reproduce it atΒ https://forum.manjaro.org/t/gvim-9-with-patches-1-1506-has-problems-opening-multiple-files/142419

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/5964/1592588429%40github.com.


--
Erik Corry

vim-dev ML

unread,
Jun 15, 2023, 5:03:01β€―AM6/15/23
to vim/vim, vim-dev ML, Your activity

I have a description of the same issue with steps to reproduce it at
https://forum.manjaro.org/t/gvim-9-with-patches-1-1506-has-problems-opening-multiple-files/142419

On Thu, 15 Jun 2023 at 10:21, mprt ***@***.***> wrote:

> Note: Step 3 is not necessary, it is however necessary to be in
> Tree-View-mode.
>
> 1. start vim
> 2. :Lex
> 3. Press i three times to cycle to tree view
> 4. Ctrl + l
>
> β€”
> Reply to this email directly, view it on GitHub
> <https://github.com/vim/vim/issues/5964#issuecomment-1592588429>.
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ***@***.***
> <https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/5964/1592588429%40github.com?utm_medium=email&utm_source=footer>
> .
>


--
Erik Corry

β€”


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5964/1592652238@github.com>

cecamp

unread,
Jun 15, 2023, 2:16:27β€―PM6/15/23
to vim/vim, vim-dev ML, Comment

You could try the in-development version of netrw .

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.Message ID: <vim/vim/issues/5964/1593527012@github.com>

Ashvith10

unread,
Jun 15, 2023, 5:38:51β€―PM6/15/23
to vim/vim, vim-dev ML, Comment

@cecamp There's still no changes in the behaviour after installing the new vba plugin file.

Screencast from 2023-06-16 03-01-32.webm

β€”
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.Message ID: <vim/vim/issues/5964/1593755881@github.com>

Reply all
Reply to author
Forward
0 new messages