[vim/vim] netrw not respecting cwd on first file openning (Issue #18510)

3 views
Skip to first unread message

dr0bz

unread,
4:58 AM (6 hours ago) 4:58 AM
to vim/vim, Subscribed
dr0bz created an issue (vim/vim#18510)

Steps to reproduce

  1. cd to a folder with files in question: ~/workspace/playground/vim-netrw-path-issue
  2. :Explore
  3. select a file and open: config.vimrc (attached below)
  4. the opened buffer has full path in the name: ~/workspace/playground/vim-netrw-path-issue/config.vimrc
  5. repeat 2 and 3 (reopen the same file through netrw)
  6. the opened buffer has a proper name respecting the cwd: config.vimrc

https://github.com/user-attachments/assets/cb82fd59-6d37-468d-94c8-6356507021ba

Expected behaviour

netrw should respect cwd on first opening.

Version of Vim

9.1.1765

Environment

Arch linux

Logs and stack traces

" minimal config
" vim -u config.vimrc

set nocompatible
packadd netrw
let g:netrw_banner = 0


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/18510@github.com>

Reply all
Reply to author
Forward
0 new messages